Skip to content

Commit

Permalink
PHP-CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Dec 21, 2023
1 parent 7c226bb commit 0ca7d97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Controller/ViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function showTransactionAction(Reader $reader, string $hash): Response
}

#[Route(path: '/audit/{entity}/{id}', name: 'dh_auditor_show_entity_history', methods: ['GET'])]
public function showEntityHistoryAction(Request $request, Reader $reader, string $entity, int|string|null $id = null): Response
public function showEntityHistoryAction(Request $request, Reader $reader, string $entity, null|int|string $id = null): Response
{
\assert(\is_string($request->query->get('page', '1')) || \is_int($request->query->get('page', '1')));
$page = (int) $request->query->get('page', '1');
Expand Down
8 changes: 2 additions & 6 deletions src/Routing/RoutingAnnotationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ public function __construct(AnnotatedRouteControllerLoader $annotatedRouteContro
$this->configuration = $configuration;
}

/**
* @param mixed $resource
*/
public function load($resource, ?string $type = null): RouteCollection
public function load(mixed $resource, ?string $type = null): RouteCollection
{
if ($this->isLoaded) {
throw new RuntimeException('Do not add the "audit" loader twice');
Expand All @@ -44,10 +41,9 @@ public function load($resource, ?string $type = null): RouteCollection
}

/**
* @param mixed $resource
* @param ?string $type
*/
public function supports($resource, ?string $type = null): bool
public function supports(mixed $resource, ?string $type = null): bool
{
return 'auditor' === $type;
}
Expand Down

0 comments on commit 0ca7d97

Please sign in to comment.