Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored and github-actions[bot] committed Nov 1, 2024
1 parent 5c8dd63 commit 131c98a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Platform/Http/Controllers/AsyncController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class AsyncController extends Controller
public function load(Request $request)
{
$request->validate([
'_call' => 'required|string',
'_screen' => 'required|string',
'_call' => 'required|string',
'_screen' => 'required|string',
'_template' => 'required|string',
]);

Expand Down
6 changes: 3 additions & 3 deletions src/Screen/Layouts/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function getSlug(): string
public function build(Repository $repository)
{
$this->variables = array_merge($this->variables, [
'deferredRoute' => route('platform.async'),
'deferredRoute' => route('platform.async'),
'deferrerParams' => $this->getDeferrerDataLoadingParameters(),
]);

Expand Down Expand Up @@ -256,8 +256,8 @@ protected function getDeferrerDataLoadingParameters(): array
}

return [
'_screen' => Crypt::encryptString(get_class($screen)),
'_call' => $this->dataLoadingMethod,
'_screen' => Crypt::encryptString(get_class($screen)),
'_call' => $this->dataLoadingMethod,
'_template' => $this->getSlug(),
];
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Platform/AsyncScreenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testAsyncMethodNotFoundScreen(): void
->actingAs($this->createAdminUser())
->post(route('platform.async'), [
'_screen' => Crypt::encryptString(DependentListenerScreen::class),
'_call' => Str::random(),
'_call' => Str::random(),
'_template' => $layout->getSlug(),
]);

Expand All @@ -71,7 +71,7 @@ public function testAsyncDeniedMethodScreen(): void
'second' => 3,
]), [
'_screen' => Crypt::encryptString(DependentListenerScreen::class),
'_call' => 'validate',
'_call' => 'validate',
'_template' => $layout->getSlug(),
]);

Expand Down

0 comments on commit 131c98a

Please sign in to comment.