Test Failed
Pull Request — master (#8)
by Alex
03:59
created
src/Persistence/AbstractCascadeService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         ClassMetadata $sourceMetadata,
105 105
         ClassMetadata $targetMetadata
106 106
     ) {
107
-        $methodName = 'get' . ucfirst($fieldName);
107
+        $methodName = 'get'.ucfirst($fieldName);
108 108
 
109 109
         if (!method_exists($sourceEntity, $methodName)) {
110 110
             $errorMessage = sprintf(
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
              * If we implement EntityInterface correctly we will never have a composite key.
156 156
              */
157 157
             return isset($mapping['joinColumns'][0]['nullable'])
158
-                ? (bool)$mapping['joinColumns'][0]['nullable']
158
+                ? (bool) $mapping['joinColumns'][0]['nullable']
159 159
                 : false;
160 160
         }
161 161
 
Please login to merge, or discard this patch.
test/unit/Persistence/CascadeSaveServiceTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
         $classMetadata->expects($this->once())->method('getName')->willReturn($entityName);
349 349
         $targetMetadata->expects($this->once())->method('getName')->willReturn($mapping['targetEntity']);
350 350
 
351
-        $methodName = 'get' . ucfirst($mapping['fieldName']);
351
+        $methodName = 'get'.ucfirst($mapping['fieldName']);
352 352
 
353 353
         $errorMessage = sprintf(
354 354
             'Failed to find required entity method \'%s::%s\'. The method is required for cascade operations '
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
         $classMetadata->expects($this->once())->method('getName')->willReturn($entityName);
455 455
         $targetMetadata->expects($this->once())->method('getName')->willReturn($mapping['targetEntity']);
456 456
 
457
-        $methodName = 'get' . ucfirst($mapping['fieldName']);
457
+        $methodName = 'get'.ucfirst($mapping['fieldName']);
458 458
 
459 459
         $errorMessage = sprintf(
460 460
             'The call to resolve entity of type \'%s\' from method call \'%s::%s\' failed: %s',
Please login to merge, or discard this patch.
test/unit/Persistence/PersistServiceTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
             ->with(EntityEventName::DELETE, $entity, $options)
387 387
             ->willReturn($event);
388 388
 
389
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
389
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
390 390
         $exceptionCode = 123;
391 391
         $exception = new EventListenerException($exceptionMessage, $exceptionCode);
392 392
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
                 'The \'entity\' argument must be an object of type \'%s\'; \'%s\' provided in \'%s\'',
739 739
                 $this->entityName,
740 740
                 get_class($entity),
741
-                PersistService::class . '::refresh'
741
+                PersistService::class.'::refresh'
742 742
             )
743 743
         );
744 744
 
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
         /** @var EntityInterface&MockObject $entity */
763 763
         $entity = $this->createMock(EntityInterface::class);
764 764
 
765
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
765
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
766 766
         $exceptionCode = 987;
767 767
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
768 768
 
@@ -841,7 +841,7 @@  discard block
 block discarded – undo
841 841
             $this->logger
842 842
         );
843 843
 
844
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
844
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
845 845
         $exceptionCode = 123;
846 846
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
847 847
 
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
             $this->logger
890 890
         );
891 891
 
892
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
892
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
893 893
         $exceptionCode = 123;
894 894
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
895 895
 
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
             $this->logger
938 938
         );
939 939
 
940
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
940
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
941 941
         $exceptionCode = 123;
942 942
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
943 943
 
Please login to merge, or discard this patch.
src/Persistence/PersistService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
             $this->dispatchEvent($this->createErrorEvent(EntityEventName::DELETE_COLLECTION_ERROR, $e));
189 189
         }
190 190
 
191
-        return (int)$event->getParam('deleted', 0);
191
+        return (int) $event->getParam('deleted', 0);
192 192
     }
193 193
 
194 194
     /**
Please login to merge, or discard this patch.