Lint
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
3dc9513923
commit
026e7674dd
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace App\Course\Actions;
|
||||
|
||||
use App\Course\Models\Course;
|
||||
use App\Course\Models\CourseMember;
|
||||
use App\Course\Resources\CourseMemberResource;
|
||||
use App\Member\Member;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
@ -14,7 +14,7 @@ class CourseIndexAction
|
|||
use AsAction;
|
||||
|
||||
/**
|
||||
* @return Collection<int, Course>
|
||||
* @return Collection<int, CourseMember>
|
||||
*/
|
||||
public function handle(Member $member): Collection
|
||||
{
|
||||
|
|
|
@ -4,15 +4,11 @@ namespace App\Course\Actions;
|
|||
|
||||
use App\Course\Models\Course;
|
||||
use App\Course\Models\CourseMember;
|
||||
use App\Course\Resources\CourseMemberResource;
|
||||
use App\Lib\JobMiddleware\JobChannels;
|
||||
use App\Lib\JobMiddleware\WithJobState;
|
||||
use App\Lib\Queue\TracksJob;
|
||||
use App\Member\Member;
|
||||
use App\Setting\NamiSettings;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;
|
||||
use Lorisleiva\Actions\ActionRequest;
|
||||
use Lorisleiva\Actions\Concerns\AsAction;
|
||||
|
||||
|
@ -22,7 +18,7 @@ class CourseUpdateAction
|
|||
use TracksJob;
|
||||
|
||||
/**
|
||||
* @return Collection<int, Course>
|
||||
* @param array<string, string> $attributes
|
||||
*/
|
||||
public function handle(CourseMember $course, array $attributes): void
|
||||
{
|
||||
|
|
|
@ -7,7 +7,6 @@ use App\Lib\JobMiddleware\WithJobState;
|
|||
use App\Lib\Queue\TracksJob;
|
||||
use App\Member\Member;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Validation\Rules\In;
|
||||
use Lorisleiva\Actions\ActionRequest;
|
||||
use Lorisleiva\Actions\Concerns\AsAction;
|
||||
|
||||
|
@ -16,13 +15,16 @@ class PaymentStoreAction
|
|||
use AsAction;
|
||||
use TracksJob;
|
||||
|
||||
/**
|
||||
* @param array<string, string> $attributes
|
||||
*/
|
||||
public function handle(Member $member, array $attributes): void
|
||||
{
|
||||
$member->createPayment($attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, array<int, string|In>>
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
|
|
|
@ -7,7 +7,6 @@ use App\Lib\JobMiddleware\WithJobState;
|
|||
use App\Lib\Queue\TracksJob;
|
||||
use App\Payment\Payment;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Validation\Rules\In;
|
||||
use Lorisleiva\Actions\ActionRequest;
|
||||
use Lorisleiva\Actions\Concerns\AsAction;
|
||||
|
||||
|
@ -16,13 +15,16 @@ class PaymentUpdateAction
|
|||
use AsAction;
|
||||
use TracksJob;
|
||||
|
||||
/**
|
||||
* @param array<string, string> $attributes
|
||||
*/
|
||||
public function handle(Payment $payment, array $attributes): void
|
||||
{
|
||||
$payment->update($attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, array<int, string|In>>
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
|
|
10
phpstan.neon
10
phpstan.neon
|
@ -28,16 +28,6 @@ parameters:
|
|||
count: 1
|
||||
path: app/Activity.php
|
||||
|
||||
-
|
||||
message: "#^Unable to resolve the template type TKey in call to function collect$#"
|
||||
count: 1
|
||||
path: app/Course/Requests/StoreRequest.php
|
||||
|
||||
-
|
||||
message: "#^Unable to resolve the template type TValue in call to function collect$#"
|
||||
count: 1
|
||||
path: app/Course/Requests/StoreRequest.php
|
||||
|
||||
-
|
||||
message: "#^Method App\\\\Dav\\\\AddressBookBackend\\:\\:getCard\\(\\) should return M of array\\{lastmodified\\: int, etag\\: string, uri\\: string, id\\: int, size\\: int\\} but returns false\\.$#"
|
||||
count: 1
|
||||
|
|
Loading…
Reference in New Issue