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

This commit is contained in:
philipp lang 2023-03-14 22:40:46 +01:00
parent f322396fd9
commit ed302377b5
3 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
namespace App\Contribution\Actions; namespace App\Contribution\Actions;
use App\Contribution\ContributionFactory; use App\Contribution\ContributionFactory;
use App\Contribution\Documents\DvDocument; use App\Contribution\Documents\ContributionDocument;
use App\Rules\JsonBase64Rule; use App\Rules\JsonBase64Rule;
use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Validator;
use Lorisleiva\Actions\ActionRequest; use Lorisleiva\Actions\ActionRequest;
@ -17,7 +17,7 @@ class GenerateAction
use AsAction; use AsAction;
/** /**
* @param class-string<DvDocument> $document * @param class-string<ContributionDocument> $document
* @param array<string, mixed> $payload * @param array<string, mixed> $payload
*/ */
public function handle(string $document, array $payload): BaseCompiler public function handle(string $document, array $payload): BaseCompiler

View File

@ -8,6 +8,11 @@ abstract class ContributionDocument extends Document
{ {
abstract public static function getName(): string; abstract public static function getName(): string;
/**
* @param array<string, mixed> $payload
*/
abstract public static function fromRequest(array $payload): static;
/** /**
* @return array<string, mixed> * @return array<string, mixed>
*/ */

View File

@ -25,11 +25,6 @@ class DvDocument extends ContributionDocument
) { ) {
} }
/**
* @param array<string, mixed> $payload
*/
abstract public static function fromRequest(array $payload): self;
public function dateRange(): string public function dateRange(): string
{ {
return Carbon::parse($this->dateFrom)->format('d.m.Y') return Carbon::parse($this->dateFrom)->format('d.m.Y')