Passed
Pull Request — master (#33)
by Vincent
06:12
created
src/Query/Query.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function ignore($flag = true)
144 144
     {
145
-        $this->statements['ignore'] = (bool)$flag;
145
+        $this->statements['ignore'] = (bool) $flag;
146 146
         
147 147
         return $this;
148 148
     }
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $this->statements['offset'] = null;
267 267
         $this->statements['aggregate'] = ['pagination', $this->getPaginationColumns($columns)];
268 268
 
269
-        $count = (int)$this->execute()[0]['aggregate'];
269
+        $count = (int) $this->execute()[0]['aggregate'];
270 270
 
271 271
         $this->compilerState->invalidate(['columns', 'orders']);
272 272
         $this->statements = $statements;
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
     #[ReadOperation]
312 312
     public function count($column = null)
313 313
     {
314
-        return (int)$this->aggregate(__FUNCTION__, $column);
314
+        return (int) $this->aggregate(__FUNCTION__, $column);
315 315
     }
316 316
 
317 317
     /**
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     #[ReadOperation]
321 321
     public function avg($column = null)
322 322
     {
323
-        return (float)$this->aggregate(__FUNCTION__, $column);
323
+        return (float) $this->aggregate(__FUNCTION__, $column);
324 324
     }
325 325
 
326 326
     /**
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     #[ReadOperation]
330 330
     public function min($column = null)
331 331
     {
332
-        return (float)$this->aggregate(__FUNCTION__, $column);
332
+        return (float) $this->aggregate(__FUNCTION__, $column);
333 333
     }
334 334
 
335 335
     /**
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     #[ReadOperation]
339 339
     public function max($column = null)
340 340
     {
341
-        return (float)$this->aggregate(__FUNCTION__, $column);
341
+        return (float) $this->aggregate(__FUNCTION__, $column);
342 342
     }
343 343
 
344 344
     /**
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     #[ReadOperation]
348 348
     public function sum($column = null)
349 349
     {
350
-        return (float)$this->aggregate(__FUNCTION__, $column);
350
+        return (float) $this->aggregate(__FUNCTION__, $column);
351 351
     }
352 352
 
353 353
     /**
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     {
378 378
         $this->compilerState->invalidate('columns');
379 379
         
380
-        $this->statements['distinct'] = (bool)$flag;
380
+        $this->statements['distinct'] = (bool) $flag;
381 381
         
382 382
         return $this;
383 383
     }
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
         # build a regular expression for each parameter
563 563
         foreach ($values as $key => $value) {
564 564
             if (is_string($key)) {
565
-                $keys[] = '/:' . $key . '/';
565
+                $keys[] = '/:'.$key.'/';
566 566
             } else {
567 567
                 $keys[] = '/[?]/';
568 568
             }
Please login to merge, or discard this patch.
src/Collection/EntityCollection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     #[ReadOperation]
69 69
     public function load($relations)
70 70
     {
71
-        foreach (Relation::sanitizeRelations((array)$relations) as $relationName => $meta) {
71
+        foreach (Relation::sanitizeRelations((array) $relations) as $relationName => $meta) {
72 72
             $this->repository->relation($relationName)->load(
73 73
                 EntityIndexer::fromArray($this->repository->mapper(), $this->storage->all()),
74 74
                 $meta['relations'],
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     #[WriteOperation]
134 134
     public function delete()
135 135
     {
136
-        $this->repository->transaction(function (RepositoryInterface $repository) {
136
+        $this->repository->transaction(function(RepositoryInterface $repository) {
137 137
             $writer = new BufferedWriter($repository);
138 138
 
139 139
             foreach ($this as $entity) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     #[WriteOperation]
156 156
     public function save()
157 157
     {
158
-        $this->repository->transaction(function (RepositoryInterface $repository) {
158
+        $this->repository->transaction(function(RepositoryInterface $repository) {
159 159
             foreach ($this as $entity) {
160 160
                 $repository->save($entity);
161 161
             }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     #[WriteOperation]
177 177
     public function saveAll($relations)
178 178
     {
179
-        $relations = Relation::sanitizeRelations((array)$relations);
179
+        $relations = Relation::sanitizeRelations((array) $relations);
180 180
 
181 181
         return $this->repository->transaction(function(RepositoryInterface $repository) use($relations) {
182 182
             $nb = 0;
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     #[WriteOperation]
206 206
     public function deleteAll($relations)
207 207
     {
208
-        $relations = Relation::sanitizeRelations((array)$relations);
208
+        $relations = Relation::sanitizeRelations((array) $relations);
209 209
 
210 210
         return $this->repository->transaction(function(RepositoryInterface $repository) use($relations) {
211 211
             $nb = 0;
Please login to merge, or discard this patch.
src/Repository/EntityRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     #[ReadOperation]
308 308
     public function loadRelations($entity, $relations)
309 309
     {
310
-        foreach (Relation::sanitizeRelations((array)$relations) as $relationName => $meta) {
310
+        foreach (Relation::sanitizeRelations((array) $relations) as $relationName => $meta) {
311 311
             $this->relation($relationName)->loadIfNotLoaded(
312 312
                 new SingleEntityIndexer($this->mapper, $entity),
313 313
                 $meta['relations'],
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     #[ReadOperation]
331 331
     public function reloadRelations($entity, $relations)
332 332
     {
333
-        foreach (Relation::sanitizeRelations((array)$relations) as $relationName => $meta) {
333
+        foreach (Relation::sanitizeRelations((array) $relations) as $relationName => $meta) {
334 334
             $this->relation($relationName)->load(
335 335
                 new SingleEntityIndexer($this->mapper, $entity),
336 336
                 $meta['relations'],
@@ -376,12 +376,12 @@  discard block
 block discarded – undo
376 376
     #[WriteOperation]
377 377
     public function saveAll($entity, $relations)
378 378
     {
379
-        $relations = Relation::sanitizeRelations((array)$relations);
379
+        $relations = Relation::sanitizeRelations((array) $relations);
380 380
 
381 381
         return $this->transaction(function() use($entity, $relations) {
382 382
             $nb = $this->save($entity);
383 383
 
384
-            foreach ((array)$relations as $relationName => $info) {
384
+            foreach ((array) $relations as $relationName => $info) {
385 385
                 $nb += $this->relation($relationName)->saveAll($entity, $info['relations']);
386 386
             }
387 387
 
@@ -401,12 +401,12 @@  discard block
 block discarded – undo
401 401
     #[WriteOperation]
402 402
     public function deleteAll($entity, $relations)
403 403
     {
404
-        $relations = Relation::sanitizeRelations((array)$relations);
404
+        $relations = Relation::sanitizeRelations((array) $relations);
405 405
 
406 406
         return $this->transaction(function() use($entity, $relations) {
407 407
             $nb = $this->delete($entity);
408 408
 
409
-            foreach ((array)$relations as $relationName => $info) {
409
+            foreach ((array) $relations as $relationName => $info) {
410 410
                 $nb += $this->relation($relationName)->deleteAll($entity, $info['relations']);
411 411
             }
412 412
 
Please login to merge, or discard this patch.
src/Query/Compiler/SqlCompiler.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         foreach ($query->statements['tables'] as $table) {
187 187
             return $query->state()->compiled = 'UPDATE '
188 188
                 . $this->quoteIdentifier($query, $table['table'])
189
-                . ' SET ' . implode(', ', $values)
189
+                . ' SET '.implode(', ', $values)
190 190
                 . $this->compileWhere($query)
191 191
             ;
192 192
         }
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
                     $from['sql'] = $this->quoteIdentifier($query, $databasePrefix.$from['table']);
525 525
                     $compiled[$from['table']] = $from;
526 526
                 } else {
527
-                    $from['sql'] = $this->quoteIdentifier($query, $databasePrefix.$from['table']) . ' ' . $this->quoteIdentifier($query, $from['alias']);
527
+                    $from['sql'] = $this->quoteIdentifier($query, $databasePrefix.$from['table']).' '.$this->quoteIdentifier($query, $from['alias']);
528 528
                     $compiled[$from['alias']] = $from;
529 529
                 }
530 530
             }
@@ -697,7 +697,7 @@  discard block
 block discarded – undo
697 697
                 if (is_array($value)) {
698 698
                     return $this->compileIntoExpression($query, $value, $column, 'REGEXP', $converted);
699 699
                 }
700
-                return $this->quoteIdentifier($query, $column).' REGEXP '.$this->compileExpressionValue($query, (string)$value, $converted);
700
+                return $this->quoteIdentifier($query, $column).' REGEXP '.$this->compileExpressionValue($query, (string) $value, $converted);
701 701
 
702 702
             // LIKE
703 703
             case ':like':
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
                 
771 771
             // Unsupported operator
772 772
             default:
773
-                throw new UnexpectedValueException("Unsupported operator '" . $operator . "' in WHERE clause");
773
+                throw new UnexpectedValueException("Unsupported operator '".$operator."' in WHERE clause");
774 774
         }
775 775
     }
776 776
 
@@ -858,7 +858,7 @@  discard block
 block discarded – undo
858 858
         $sql = '('.$this->compileSelect($query).')';
859 859
         
860 860
         if ($alias) {
861
-            $sql = $sql . ' as ' . $this->quoteIdentifier($clause, $alias);
861
+            $sql = $sql.' as '.$this->quoteIdentifier($clause, $alias);
862 862
         }
863 863
         
864 864
         $this->addQueryBindings($clause, $query);
@@ -1016,12 +1016,12 @@  discard block
 block discarded – undo
1016 1016
         if ($lock !== null && !$query->statements['aggregate']) {
1017 1017
             // Lock for update
1018 1018
             if ($lock === LockMode::PESSIMISTIC_WRITE) {
1019
-                return ' ' . $this->platform()->grammar()->getWriteLockSQL();
1019
+                return ' '.$this->platform()->grammar()->getWriteLockSQL();
1020 1020
             }
1021 1021
 
1022 1022
             // Shared Lock: other process can read the row but not update it.
1023 1023
             if ($lock === LockMode::PESSIMISTIC_READ) {
1024
-                return ' ' . $this->platform()->grammar()->getReadLockSQL();
1024
+                return ' '.$this->platform()->grammar()->getReadLockSQL();
1025 1025
             }
1026 1026
         }
1027 1027
 
Please login to merge, or discard this patch.
src/Connection/ConnectionRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
     private function getConnectionParameters(string $connectionName): array
115 115
     {
116 116
         if (!isset($this->parametersMap[$connectionName])) {
117
-            throw new DBALException('Connection name "' . $connectionName . '" is not set');
117
+            throw new DBALException('Connection name "'.$connectionName.'" is not set');
118 118
         }
119 119
 
120 120
         $parameters = $this->parametersMap[$connectionName];
Please login to merge, or discard this patch.
src/Entity/EntityGenerator.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $body = str_replace('<spaces>', $this->spaces, $body);
367 367
         $last = strrpos($currentCode, '}');
368 368
 
369
-        return substr($currentCode, 0, $last) . $body . (strlen($body) > 0 ? "\n" : '') . "}\n";
369
+        return substr($currentCode, 0, $last).$body.(strlen($body) > 0 ? "\n" : '')."}\n";
370 370
     }
371 371
 
372 372
     /**
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
     protected function generateEntityNamespace()
376 376
     {
377 377
         if ($this->hasNamespace($this->mapperInfo->className())) {
378
-            return 'namespace ' . $this->getNamespace($this->mapperInfo->className()) .';' . "\n\n";
378
+            return 'namespace '.$this->getNamespace($this->mapperInfo->className()).';'."\n\n";
379 379
         }
380 380
     }
381 381
 
@@ -389,18 +389,18 @@  discard block
 block discarded – undo
389 389
         $use = [];
390 390
         
391 391
         if ($this->hasNamespace($this->getClassToExtend())) {
392
-            $use[$this->getClassToExtend()] = 'use ' . $this->getClassToExtend() . ';';
392
+            $use[$this->getClassToExtend()] = 'use '.$this->getClassToExtend().';';
393 393
         }
394 394
         
395 395
         foreach ($this->interfaces as $interface) {
396 396
             if ($this->hasNamespace($interface)) {
397
-                $use[$interface] = 'use ' . $interface . ';';
397
+                $use[$interface] = 'use '.$interface.';';
398 398
             }
399 399
         }
400 400
         
401 401
         foreach ($this->traits as $trait) {
402 402
             if ($this->hasNamespace($trait)) {
403
-                $use[$trait] = 'use ' . $trait . ';';
403
+                $use[$trait] = 'use '.$trait.';';
404 404
             }
405 405
         }
406 406
         
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
         
431 431
         sort($use);
432 432
         
433
-        return implode("\n", $use) . "\n\n";
433
+        return implode("\n", $use)."\n\n";
434 434
     }
435 435
     
436 436
     /**
@@ -438,9 +438,9 @@  discard block
 block discarded – undo
438 438
      */
439 439
     protected function generateEntityClassName()
440 440
     {
441
-        return 'class ' . $this->getClassName($this->mapperInfo->className()) .
442
-            ($this->classToExtend ? ' extends ' . $this->getClassToExtendName() : null) .
443
-            ($this->interfaces ? ' implements ' . $this->getInterfacesToImplement() : null);
441
+        return 'class '.$this->getClassName($this->mapperInfo->className()).
442
+            ($this->classToExtend ? ' extends '.$this->getClassToExtendName() : null).
443
+            ($this->interfaces ? ' implements '.$this->getInterfacesToImplement() : null);
444 444
     }
445 445
 
446 446
     /**
@@ -455,10 +455,10 @@  discard block
 block discarded – undo
455 455
         $traits = '';
456 456
         
457 457
         foreach ($this->traits as $trait) {
458
-            $traits .= $this->spaces . 'use ' . $this->getRelativeClassName($trait) . ';' . "\n";
458
+            $traits .= $this->spaces.'use '.$this->getRelativeClassName($trait).';'."\n";
459 459
         }
460 460
         
461
-        return $traits . "\n";
461
+        return $traits."\n";
462 462
     }
463 463
 
464 464
     /**
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
     {
564 564
         $lines = array();
565 565
         $lines[] = '/**';
566
-        $lines[] = ' * ' . $this->getClassName($this->mapperInfo->className());
566
+        $lines[] = ' * '.$this->getClassName($this->mapperInfo->className());
567 567
         $lines[] = ' */';
568 568
         
569 569
         return implode("\n", $lines);
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
             $variableName = $this->inflector->camelize($fieldName);
695 695
             $methodName = $variableName;
696 696
         } else {
697
-            $methodName = $type . $this->inflector->classify($fieldName);
697
+            $methodName = $type.$this->inflector->classify($fieldName);
698 698
             $variableName = $this->inflector->camelize($fieldName);
699 699
         }
700 700
         
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
 
712 712
         if ($propertyInfo->isObject()) {
713 713
             $variableType = $this->getRelativeClassName($propertyInfo->className());
714
-            $methodTypeHint =  $variableType.' ';
714
+            $methodTypeHint = $variableType.' ';
715 715
         } else {
716 716
             $variableType = $propertyInfo->phpType();
717 717
             $methodTypeHint = null;
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
           '<variableName>'      => $variableName,
741 741
           '<methodName>'        => $methodName,
742 742
           '<fieldName>'         => $fieldName,
743
-          '<variableDefault>'   => ($defaultValue !== null ) ? (' = '.$defaultValue) : ''
743
+          '<variableDefault>'   => ($defaultValue !== null) ? (' = '.$defaultValue) : ''
744 744
         );
745 745
 
746 746
         $method = str_replace(
@@ -815,9 +815,9 @@  discard block
 block discarded – undo
815 815
     protected function generateFieldMappingPropertyDocBlock($property)
816 816
     {
817 817
         $lines = array();
818
-        $lines[] = $this->spaces . '/**';
819
-        $lines[] = $this->spaces . ' * @var '.$property->phpType();
820
-        $lines[] = $this->spaces . ' */';
818
+        $lines[] = $this->spaces.'/**';
819
+        $lines[] = $this->spaces.' * @var '.$property->phpType();
820
+        $lines[] = $this->spaces.' */';
821 821
 
822 822
         return implode("\n", $lines);
823 823
     }
@@ -846,9 +846,9 @@  discard block
 block discarded – undo
846 846
         }
847 847
         
848 848
         $lines = array();
849
-        $lines[] = $this->spaces . '/**';
850
-        $lines[] = $this->spaces . ' * @var '.$className;
851
-        $lines[] = $this->spaces . ' */';
849
+        $lines[] = $this->spaces.'/**';
850
+        $lines[] = $this->spaces.' * @var '.$className;
851
+        $lines[] = $this->spaces.' */';
852 852
 
853 853
         return implode("\n", $lines);
854 854
     }
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
 
890 890
             if ($inClass) {
891 891
                 $inClass = false;
892
-                $lastSeenClass = $lastSeenNamespace . ($lastSeenNamespace ? '\\' : '') . $token[1];
892
+                $lastSeenClass = $lastSeenNamespace.($lastSeenNamespace ? '\\' : '').$token[1];
893 893
                 $this->staticReflection[$lastSeenClass]['properties'] = array();
894 894
                 $this->staticReflection[$lastSeenClass]['methods'] = array();
895 895
             }
@@ -897,16 +897,16 @@  discard block
 block discarded – undo
897 897
             if ($token[0] == T_NAMESPACE) {
898 898
                 $lastSeenNamespace = "";
899 899
                 $inNamespace = true;
900
-            } elseif ($token[0] == T_CLASS && $tokens[$i-1][0] != T_DOUBLE_COLON) {
900
+            } elseif ($token[0] == T_CLASS && $tokens[$i - 1][0] != T_DOUBLE_COLON) {
901 901
                 $inClass = true;
902 902
             } elseif ($token[0] == T_FUNCTION) {
903
-                if ($tokens[$i+2][0] == T_STRING) {
904
-                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i+2][1]);
905
-                } elseif ($tokens[$i+2] == "&" && $tokens[$i+3][0] == T_STRING) {
906
-                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i+3][1]);
903
+                if ($tokens[$i + 2][0] == T_STRING) {
904
+                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i + 2][1]);
905
+                } elseif ($tokens[$i + 2] == "&" && $tokens[$i + 3][0] == T_STRING) {
906
+                    $this->staticReflection[$lastSeenClass]['methods'][] = strtolower($tokens[$i + 3][1]);
907 907
                 }
908
-            } elseif (in_array($token[0], array(T_VAR, T_PUBLIC, T_PRIVATE, T_PROTECTED)) && $tokens[$i+2][0] != T_FUNCTION) {
909
-                $this->staticReflection[$lastSeenClass]['properties'][] = substr($tokens[$i+2][1], 1);
908
+            } elseif (in_array($token[0], array(T_VAR, T_PUBLIC, T_PRIVATE, T_PROTECTED)) && $tokens[$i + 2][0] != T_FUNCTION) {
909
+                $this->staticReflection[$lastSeenClass]['properties'][] = substr($tokens[$i + 2][1], 1);
910 910
             }
911 911
         }
912 912
     }
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
         if ($this->hasNamespace($className)) {
982 982
             return $this->getClassName($className);
983 983
         } else {
984
-            return '\\' . $className;
984
+            return '\\'.$className;
985 985
         }
986 986
     }
987 987
     
@@ -1082,8 +1082,8 @@  discard block
 block discarded – undo
1082 1082
         $lines = explode("\n", $code);
1083 1083
 
1084 1084
         foreach ($lines as $key => $value) {
1085
-            if ( ! empty($value)) {
1086
-                $lines[$key] = str_repeat($this->spaces, $num) . $lines[$key];
1085
+            if (!empty($value)) {
1086
+                $lines[$key] = str_repeat($this->spaces, $num).$lines[$key];
1087 1087
             }
1088 1088
         }
1089 1089
 
@@ -1112,7 +1112,7 @@  discard block
 block discarded – undo
1112 1112
         }
1113 1113
         
1114 1114
         if (is_string($value)) {
1115
-            return "'" . $value . "'";
1115
+            return "'".$value."'";
1116 1116
         }
1117 1117
         
1118 1118
         if (is_bool($value)) {
@@ -1249,7 +1249,7 @@  discard block
 block discarded – undo
1249 1249
     public function setFieldVisibility(string $visibility): void
1250 1250
     {
1251 1251
         if ($visibility !== static::FIELD_VISIBLE_PRIVATE && $visibility !== static::FIELD_VISIBLE_PROTECTED) {
1252
-            throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): ' . $visibility);
1252
+            throw new \InvalidArgumentException('Invalid provided visibility (only private and protected are allowed): '.$visibility);
1253 1253
         }
1254 1254
 
1255 1255
         $this->fieldVisibility = $visibility;
Please login to merge, or discard this patch.
src/Test/RepositoryAssertion.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -194,25 +194,25 @@
 block discarded – undo
194 194
                 $value = $repository->extractOne($entity, $attribute);
195 195
 
196 196
                 if ($isUninitialized) {
197
-                    $this->fail($message . ': Expected attribute "'.$path.'" to be not initialised');
197
+                    $this->fail($message.': Expected attribute "'.$path.'" to be not initialised');
198 198
                 }
199 199
             } catch (UninitializedPropertyException $e) {
200 200
                 if (!$isUninitialized) {
201
-                    $this->fail($message . ': The attribute "'.$path.'" is not initialised');
201
+                    $this->fail($message.': The attribute "'.$path.'" is not initialised');
202 202
                 }
203 203
             }
204 204
 
205 205
             if (!is_object($expectedValue)) {
206
-                $this->assertSame($expectedValue, $value, $message . ': Expected attribute "'.$path.'" is not the same');
206
+                $this->assertSame($expectedValue, $value, $message.': Expected attribute "'.$path.'" is not the same');
207 207
                 continue;
208 208
             }
209 209
 
210 210
             if ($expectedValue instanceof Constraint) {
211
-                $this->assertThat($value, $expectedValue, $message . ': Expected attribute "'.$path.'" is not the same');
211
+                $this->assertThat($value, $expectedValue, $message.': Expected attribute "'.$path.'" is not the same');
212 212
             } elseif ($expectedValue instanceof \DateTimeInterface) {
213
-                $this->assertEqualsWithDelta($expectedValue, $value, $dateTimeDelta, $message . ': Expected attribute "'.$path.'" is not the same');
213
+                $this->assertEqualsWithDelta($expectedValue, $value, $dateTimeDelta, $message.': Expected attribute "'.$path.'" is not the same');
214 214
             } else {
215
-                $this->assertEquals($expectedValue, $value, $message . ': Expected attribute "'.$path.'" is not the same');
215
+                $this->assertEquals($expectedValue, $value, $message.': Expected attribute "'.$path.'" is not the same');
216 216
             }
217 217
         }
218 218
     }
Please login to merge, or discard this patch.
src/Entity/Hydrator/Exception/FieldNotDeclaredException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct(string $entity, string $field)
17 17
     {
18
-        parent::__construct('The field "' . $field . '" is not declared for the entity ' . $entity);
18
+        parent::__construct('The field "'.$field.'" is not declared for the entity '.$entity);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Entity/Hydrator/Exception/HydratorGenerationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct(string $entityClass, string $message = '', ?Throwable $previous = null)
26 26
     {
27
-        parent::__construct($entityClass . ' : ' . $message, 0, $previous);
27
+        parent::__construct($entityClass.' : '.$message, 0, $previous);
28 28
 
29 29
         $this->entityClass = $entityClass;
30 30
     }
Please login to merge, or discard this patch.