Lint
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Philipp Lang 2023-10-18 18:14:07 +02:00
parent 3dc9513923
commit 026e7674dd
5 changed files with 11 additions and 21 deletions

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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