Passed
Pull Request — master (#5)
by Alex
02:16
created
src/Factory/Mapping/Driver/MappingDriverChainFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/Factory/DataFixture/OrmExecutorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Factory/Console/Helper/ConnectionHelperFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      *
71 71
      * @throws ServiceNotCreatedException
72 72
      */
73
-    private function resolveConnection(ContainerInterface $container, string $serviceName): Connection|string|null
73
+    private function resolveConnection(ContainerInterface $container, string $serviceName): Connection | string | null
74 74
     {
75 75
         try {
76 76
             $arguments = new ArgvInput();
Please login to merge, or discard this patch.
src/Hydrator/Strategy/HydratorCollectionStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Repository/EntityRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Hydrator/EntityHydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.