Lint
This commit is contained in:
parent
0ac3314e7f
commit
b94d1d4b63
|
|
@ -4,6 +4,7 @@ namespace App\Form\Actions;
|
||||||
|
|
||||||
use App\Form\FormSettings;
|
use App\Form\FormSettings;
|
||||||
use App\Form\Models\Form;
|
use App\Form\Models\Form;
|
||||||
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Support\Facades\Cache;
|
use Illuminate\Support\Facades\Cache;
|
||||||
use Illuminate\Support\Facades\URL;
|
use Illuminate\Support\Facades\URL;
|
||||||
use Lorisleiva\Actions\Concerns\AsAction;
|
use Lorisleiva\Actions\Concerns\AsAction;
|
||||||
|
|
@ -12,7 +13,7 @@ class FormGenerateLaterlinkAction
|
||||||
{
|
{
|
||||||
use AsAction;
|
use AsAction;
|
||||||
|
|
||||||
public function asController(Form $form)
|
public function asController(Form $form): JsonResponse
|
||||||
{
|
{
|
||||||
$registerUrl = str(app(FormSettings::class)->registerUrl)->replace('{slug}', $form->slug)->toString();
|
$registerUrl = str(app(FormSettings::class)->registerUrl)->replace('{slug}', $form->slug)->toString();
|
||||||
$laterId = str()->uuid()->toString();
|
$laterId = str()->uuid()->toString();
|
||||||
|
|
|
||||||
|
|
@ -90,10 +90,6 @@ class RegisterAction
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isRegisteringLater(ActionRequest $request, Form $form): bool {
|
public function isRegisteringLater(ActionRequest $request, Form $form): bool {
|
||||||
if (!is_array($request->query())) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$validator = Validator::make($request->query(), [
|
$validator = Validator::make($request->query(), [
|
||||||
'later' => 'required|numeric|in:1',
|
'later' => 'required|numeric|in:1',
|
||||||
'id' => 'required|string|uuid:4',
|
'id' => 'required|string|uuid:4',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue