From c6a064b4847650bf46e0faf7136c22099a1aa994 Mon Sep 17 00:00:00 2001 From: Damien Harper Date: Sun, 8 Dec 2024 19:54:01 +0100 Subject: [PATCH] PHP-CS-Fixer --- src/Provider/Doctrine/Persistence/Reader/Reader.php | 3 ++- tests/Event/LifecycleEventTest.php | 2 +- .../Doctrine/Persistence/Event/CreateSchemaListenerTest.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Provider/Doctrine/Persistence/Reader/Reader.php b/src/Provider/Doctrine/Persistence/Reader/Reader.php index 17b6b78..cf9a7fa 100644 --- a/src/Provider/Doctrine/Persistence/Reader/Reader.php +++ b/src/Provider/Doctrine/Persistence/Reader/Reader.php @@ -6,6 +6,7 @@ use DH\Auditor\Exception\AccessDeniedException; use DH\Auditor\Exception\InvalidArgumentException; +use DH\Auditor\Model\Entry; use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Security; use DH\Auditor\Provider\Doctrine\Configuration; use DH\Auditor\Provider\Doctrine\DoctrineProvider; @@ -116,7 +117,7 @@ public function getAuditsByTransactionHash(string $transactionHash): array } /** - * @return array{results: \ArrayIterator, currentPage: int, hasPreviousPage: bool, hasNextPage: bool, previousPage: null|int, nextPage: null|int, numPages: int, haveToPaginate: bool, numResults: int, pageSize: int} + * @return array{results: \ArrayIterator, currentPage: int, hasPreviousPage: bool, hasNextPage: bool, previousPage: null|int, nextPage: null|int, numPages: int, haveToPaginate: bool, numResults: int, pageSize: int} */ public function paginate(Query $query, int $page = 1, ?int $pageSize = null): array { diff --git a/tests/Event/LifecycleEventTest.php b/tests/Event/LifecycleEventTest.php index cf5b5d0..5a9d5d5 100644 --- a/tests/Event/LifecycleEventTest.php +++ b/tests/Event/LifecycleEventTest.php @@ -20,7 +20,7 @@ final class LifecycleEventTest extends TestCase use AuditorTrait; /** - * @var array|string> + * @var array|string> */ private const PAYLOAD = [ 'entity' => AuditEventSubscriber::class, diff --git a/tests/Provider/Doctrine/Persistence/Event/CreateSchemaListenerTest.php b/tests/Provider/Doctrine/Persistence/Event/CreateSchemaListenerTest.php index 598e0da..418811d 100644 --- a/tests/Provider/Doctrine/Persistence/Event/CreateSchemaListenerTest.php +++ b/tests/Provider/Doctrine/Persistence/Event/CreateSchemaListenerTest.php @@ -27,7 +27,7 @@ final class CreateSchemaListenerTest extends TestCase use DefaultSchemaSetupTrait; /** - * @var array> + * @var array> */ private const CLASSES = [Dog::class, Cat::class];