@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | * |
| 305 | 305 | * @throws EntityRepositoryException |
| 306 | 306 | */ |
| 307 | - protected function executeQuery(QueryBuilder|AbstractQuery $query, array $options = []): mixed |
|
| 307 | + protected function executeQuery(QueryBuilder | AbstractQuery $query, array $options = []): mixed |
|
| 308 | 308 | { |
| 309 | 309 | try { |
| 310 | 310 | return $this->queryService->execute($query, $options); |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * |
| 325 | 325 | * @throws EntityRepositoryException |
| 326 | 326 | */ |
| 327 | - protected function getSingleResultOrNull(AbstractQuery|QueryBuilder $query, array $options = []): ?EntityInterface |
|
| 327 | + protected function getSingleResultOrNull(AbstractQuery | QueryBuilder $query, array $options = []): ?EntityInterface |
|
| 328 | 328 | { |
| 329 | 329 | try { |
| 330 | 330 | $entity = $this->queryService->getSingleResultOrNull($query, $options); |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | * |
| 347 | 347 | * @throws EntityRepositoryException |
| 348 | 348 | */ |
| 349 | - protected function getSingleArrayResultOrNull(AbstractQuery|QueryBuilder $query, array $options = []): ?array |
|
| 349 | + protected function getSingleArrayResultOrNull(AbstractQuery | QueryBuilder $query, array $options = []): ?array |
|
| 350 | 350 | { |
| 351 | 351 | $options = array_replace_recursive( |
| 352 | 352 | $options, |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | * |
| 374 | 374 | * @throws EntityRepositoryException |
| 375 | 375 | */ |
| 376 | - protected function getSingleScalarResult(AbstractQuery|QueryBuilder $query, array $options = []): mixed |
|
| 376 | + protected function getSingleScalarResult(AbstractQuery | QueryBuilder $query, array $options = []): mixed |
|
| 377 | 377 | { |
| 378 | 378 | try { |
| 379 | 379 | return $this->queryService->getSingleScalarResult($query, $options); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | protected function toMany($object, $collectionName, $target, $values): void |
| 43 | 43 | { |
| 44 | 44 | if (!is_iterable($values)) { |
| 45 | - $values = (array)$values; |
|
| 45 | + $values = (array) $values; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $metadata = $this->objectManager->getClassMetadata($target); |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | if ($value !== null && $typeOfField === 'bigint') { |
| 287 | - return (int)$value; |
|
| 287 | + return (int) $value; |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | return parent::handleTypeConversions($value, $typeOfField); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * @throws ServiceNotFoundException |
| 68 | 68 | * @throws ContainerExceptionInterface |
| 69 | 69 | */ |
| 70 | - private function getReader(ContainerInterface $container, string|Reader $reader, string $serviceName): Reader |
|
| 70 | + private function getReader(ContainerInterface $container, string | Reader $reader, string $serviceName): Reader |
|
| 71 | 71 | { |
| 72 | 72 | if (is_string($reader)) { |
| 73 | 73 | $reader = $this->getService($container, $reader, $serviceName); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | private function getCache( |
| 96 | 96 | ServiceLocatorInterface $container, |
| 97 | - string|CacheItemPoolInterface $cache, |
|
| 97 | + string | CacheItemPoolInterface $cache, |
|
| 98 | 98 | string $serviceName |
| 99 | 99 | ): CacheItemPoolInterface { |
| 100 | 100 | if (is_string($cache)) { |