Lint
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
f322396fd9
commit
ed302377b5
|
@ -3,7 +3,7 @@
|
|||
namespace App\Contribution\Actions;
|
||||
|
||||
use App\Contribution\ContributionFactory;
|
||||
use App\Contribution\Documents\DvDocument;
|
||||
use App\Contribution\Documents\ContributionDocument;
|
||||
use App\Rules\JsonBase64Rule;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Lorisleiva\Actions\ActionRequest;
|
||||
|
@ -17,8 +17,8 @@ class GenerateAction
|
|||
use AsAction;
|
||||
|
||||
/**
|
||||
* @param class-string<DvDocument> $document
|
||||
* @param array<string, mixed> $payload
|
||||
* @param class-string<ContributionDocument> $document
|
||||
* @param array<string, mixed> $payload
|
||||
*/
|
||||
public function handle(string $document, array $payload): BaseCompiler
|
||||
{
|
||||
|
|
|
@ -8,6 +8,11 @@ abstract class ContributionDocument extends Document
|
|||
{
|
||||
abstract public static function getName(): string;
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $payload
|
||||
*/
|
||||
abstract public static function fromRequest(array $payload): static;
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
{
|
||||
return Carbon::parse($this->dateFrom)->format('d.m.Y')
|
||||
|
|
Loading…
Reference in New Issue