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;
|
namespace App\Course\Actions;
|
||||||
|
|
||||||
use App\Course\Models\Course;
|
use App\Course\Models\CourseMember;
|
||||||
use App\Course\Resources\CourseMemberResource;
|
use App\Course\Resources\CourseMemberResource;
|
||||||
use App\Member\Member;
|
use App\Member\Member;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
use Illuminate\Database\Eloquent\Collection;
|
||||||
|
@ -14,7 +14,7 @@ class CourseIndexAction
|
||||||
use AsAction;
|
use AsAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Collection<int, Course>
|
* @return Collection<int, CourseMember>
|
||||||
*/
|
*/
|
||||||
public function handle(Member $member): Collection
|
public function handle(Member $member): Collection
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,15 +4,11 @@ namespace App\Course\Actions;
|
||||||
|
|
||||||
use App\Course\Models\Course;
|
use App\Course\Models\Course;
|
||||||
use App\Course\Models\CourseMember;
|
use App\Course\Models\CourseMember;
|
||||||
use App\Course\Resources\CourseMemberResource;
|
|
||||||
use App\Lib\JobMiddleware\JobChannels;
|
use App\Lib\JobMiddleware\JobChannels;
|
||||||
use App\Lib\JobMiddleware\WithJobState;
|
use App\Lib\JobMiddleware\WithJobState;
|
||||||
use App\Lib\Queue\TracksJob;
|
use App\Lib\Queue\TracksJob;
|
||||||
use App\Member\Member;
|
|
||||||
use App\Setting\NamiSettings;
|
use App\Setting\NamiSettings;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;
|
|
||||||
use Lorisleiva\Actions\ActionRequest;
|
use Lorisleiva\Actions\ActionRequest;
|
||||||
use Lorisleiva\Actions\Concerns\AsAction;
|
use Lorisleiva\Actions\Concerns\AsAction;
|
||||||
|
|
||||||
|
@ -22,7 +18,7 @@ class CourseUpdateAction
|
||||||
use TracksJob;
|
use TracksJob;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Collection<int, Course>
|
* @param array<string, string> $attributes
|
||||||
*/
|
*/
|
||||||
public function handle(CourseMember $course, array $attributes): void
|
public function handle(CourseMember $course, array $attributes): void
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,6 @@ use App\Lib\JobMiddleware\WithJobState;
|
||||||
use App\Lib\Queue\TracksJob;
|
use App\Lib\Queue\TracksJob;
|
||||||
use App\Member\Member;
|
use App\Member\Member;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Validation\Rules\In;
|
|
||||||
use Lorisleiva\Actions\ActionRequest;
|
use Lorisleiva\Actions\ActionRequest;
|
||||||
use Lorisleiva\Actions\Concerns\AsAction;
|
use Lorisleiva\Actions\Concerns\AsAction;
|
||||||
|
|
||||||
|
@ -16,13 +15,16 @@ class PaymentStoreAction
|
||||||
use AsAction;
|
use AsAction;
|
||||||
use TracksJob;
|
use TracksJob;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, string> $attributes
|
||||||
|
*/
|
||||||
public function handle(Member $member, array $attributes): void
|
public function handle(Member $member, array $attributes): void
|
||||||
{
|
{
|
||||||
$member->createPayment($attributes);
|
$member->createPayment($attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, array<int, string|In>>
|
* @return array<string, string>
|
||||||
*/
|
*/
|
||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,6 @@ use App\Lib\JobMiddleware\WithJobState;
|
||||||
use App\Lib\Queue\TracksJob;
|
use App\Lib\Queue\TracksJob;
|
||||||
use App\Payment\Payment;
|
use App\Payment\Payment;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Validation\Rules\In;
|
|
||||||
use Lorisleiva\Actions\ActionRequest;
|
use Lorisleiva\Actions\ActionRequest;
|
||||||
use Lorisleiva\Actions\Concerns\AsAction;
|
use Lorisleiva\Actions\Concerns\AsAction;
|
||||||
|
|
||||||
|
@ -16,13 +15,16 @@ class PaymentUpdateAction
|
||||||
use AsAction;
|
use AsAction;
|
||||||
use TracksJob;
|
use TracksJob;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, string> $attributes
|
||||||
|
*/
|
||||||
public function handle(Payment $payment, array $attributes): void
|
public function handle(Payment $payment, array $attributes): void
|
||||||
{
|
{
|
||||||
$payment->update($attributes);
|
$payment->update($attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<string, array<int, string|In>>
|
* @return array<string, string>
|
||||||
*/
|
*/
|
||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
|
|
10
phpstan.neon
10
phpstan.neon
|
@ -28,16 +28,6 @@ parameters:
|
||||||
count: 1
|
count: 1
|
||||||
path: app/Activity.php
|
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\\.$#"
|
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
|
count: 1
|
||||||
|
|
Loading…
Reference in New Issue