@@ -122,7 +122,7 @@ |
||
| 122 | 122 | $config, |
| 123 | 123 | $configuration, |
| 124 | 124 | $eventManager |
| 125 | - ): Connection { |
|
| 125 | + ) : Connection { |
|
| 126 | 126 | Assert::assertSame($configurationArg, $configuration); |
| 127 | 127 | Assert::assertSame($eventManagerArg, $eventManager); |
| 128 | 128 | Assert::assertSame( |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | $this->executor->execute( |
| 77 | 77 | $this->fixtures, |
| 78 | - (bool)$input->getOption('append') |
|
| 78 | + (bool) $input->getOption('append') |
|
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | $output->writeln(sprintf('Completed execution of \'%d\' fixtures', count($this->fixtures))); |
@@ -46,9 +46,9 @@ discard block |
||
| 46 | 46 | * @throws QueryServiceException |
| 47 | 47 | */ |
| 48 | 48 | public function getSingleResultOrNull( |
| 49 | - AbstractQuery|QueryBuilder $queryOrBuilder, |
|
| 49 | + AbstractQuery | QueryBuilder $queryOrBuilder, |
|
| 50 | 50 | array $options = [] |
| 51 | - ): EntityInterface|array|null { |
|
| 51 | + ): EntityInterface | array | null { |
|
| 52 | 52 | $result = $this->execute($queryOrBuilder, $options); |
| 53 | 53 | |
| 54 | 54 | if (empty($result)) { |
@@ -75,9 +75,9 @@ discard block |
||
| 75 | 75 | * @throws QueryServiceException |
| 76 | 76 | */ |
| 77 | 77 | public function getSingleScalarResult( |
| 78 | - AbstractQuery|QueryBuilder $queryOrBuilder, |
|
| 78 | + AbstractQuery | QueryBuilder $queryOrBuilder, |
|
| 79 | 79 | array $options = [] |
| 80 | - ): int|float|bool|string|null { |
|
| 80 | + ): int | float | bool | string | null { |
|
| 81 | 81 | try { |
| 82 | 82 | return $this->getQuery($queryOrBuilder, $options)->getSingleScalarResult(); |
| 83 | 83 | } catch (QueryServiceException $e) { |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @throws QueryServiceException |
| 101 | 101 | */ |
| 102 | - public function execute(AbstractQuery|QueryBuilder $queryOrBuilder, array $options = []): mixed |
|
| 102 | + public function execute(AbstractQuery | QueryBuilder $queryOrBuilder, array $options = []): mixed |
|
| 103 | 103 | { |
| 104 | 104 | try { |
| 105 | 105 | return $this->getQuery($queryOrBuilder, $options)->execute(); |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * |
| 288 | 288 | * @throws QueryServiceException |
| 289 | 289 | */ |
| 290 | - private function getQuery(AbstractQuery|QueryBuilder $queryOrBuilder, array $options = []): AbstractQuery |
|
| 290 | + private function getQuery(AbstractQuery | QueryBuilder $queryOrBuilder, array $options = []): AbstractQuery |
|
| 291 | 291 | { |
| 292 | 292 | if ($queryOrBuilder instanceof QueryBuilder) { |
| 293 | 293 | $queryOrBuilder = $this->prepareQueryBuilder($queryOrBuilder, $options)->getQuery(); |
@@ -56,9 +56,9 @@ discard block |
||
| 56 | 56 | * @throws Exception\QueryServiceException |
| 57 | 57 | */ |
| 58 | 58 | public function getSingleResultOrNull( |
| 59 | - AbstractQuery|QueryBuilder $queryOrBuilder, |
|
| 59 | + AbstractQuery | QueryBuilder $queryOrBuilder, |
|
| 60 | 60 | array $options = [] |
| 61 | - ): EntityInterface|array|null; |
|
| 61 | + ): EntityInterface | array | null; |
|
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * @param AbstractQuery|QueryBuilder $queryOrBuilder |
@@ -69,16 +69,16 @@ discard block |
||
| 69 | 69 | * @throws Exception\QueryServiceException |
| 70 | 70 | */ |
| 71 | 71 | public function getSingleScalarResult( |
| 72 | - AbstractQuery|QueryBuilder $queryOrBuilder, |
|
| 72 | + AbstractQuery | QueryBuilder $queryOrBuilder, |
|
| 73 | 73 | array $options = [] |
| 74 | - ): int|float|bool|string|null; |
|
| 74 | + ): int | float | bool | string | null; |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * @param array<string, mixed> $options |
| 78 | 78 | * |
| 79 | 79 | * @throws Exception\QueryServiceException |
| 80 | 80 | */ |
| 81 | - public function execute(AbstractQuery|QueryBuilder $queryOrBuilder, array $options = []): mixed; |
|
| 81 | + public function execute(AbstractQuery | QueryBuilder $queryOrBuilder, array $options = []): mixed; |
|
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * @param array<string, mixed> $criteria |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?int |
| 13 | 13 | { |
| 14 | - return $value === null ? null : (int)$value; |
|
| 14 | + return $value === null ? null : (int) $value; |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | private function getMappingDriver( |
| 129 | 129 | ServiceLocatorInterface $container, |
| 130 | - string|array|MappingDriver $driver, |
|
| 130 | + string | array | MappingDriver $driver, |
|
| 131 | 131 | string $serviceName |
| 132 | 132 | ): MappingDriver { |
| 133 | 133 | if (is_string($driver)) { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | private function getCache( |
| 171 | 171 | ServiceLocatorInterface $container, |
| 172 | - string|array|CacheItemPoolInterface $cache, |
|
| 172 | + string | array | CacheItemPoolInterface $cache, |
|
| 173 | 173 | string $serviceName |
| 174 | 174 | ): CacheItemPoolInterface { |
| 175 | 175 | if (is_string($cache)) { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | private function getRepositoryFactory( |
| 211 | 211 | ContainerInterface $container, |
| 212 | - string|RepositoryFactory $factory, |
|
| 212 | + string | RepositoryFactory $factory, |
|
| 213 | 213 | string $serviceName |
| 214 | 214 | ): RepositoryFactory { |
| 215 | 215 | if (is_string($factory)) { |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | private function createDriver( |
| 54 | 54 | ServiceLocatorInterface $container, |
| 55 | - MappingDriver|string|array $driver, |
|
| 55 | + MappingDriver | string | array $driver, |
|
| 56 | 56 | string $serviceName |
| 57 | 57 | ): MappingDriver { |
| 58 | 58 | if (is_string($driver)) { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | */ |
| 72 | 72 | private function getPurger( |
| 73 | 73 | ContainerInterface $container, |
| 74 | - ORMPurger|string|null $purger, |
|
| 74 | + ORMPurger | string | null $purger, |
|
| 75 | 75 | string $serviceName |
| 76 | 76 | ): ?ORMPurger { |
| 77 | 77 | if (null === $purger) { |
@@ -211,7 +211,7 @@ |
||
| 211 | 211 | * @throws InvalidArgumentException |
| 212 | 212 | * @throws RuntimeException |
| 213 | 213 | */ |
| 214 | - private function getById(string $entityName, int|string $id): object |
|
| 214 | + private function getById(string $entityName, int | string $id): object |
|
| 215 | 215 | { |
| 216 | 216 | try { |
| 217 | 217 | $entity = $this->repository->find($id); |