Test Failed
Pull Request — master (#8)
by Alex
03:24
created
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.
test/unit/EntityRepositoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         $entityId = 'FOO123';
126 126
 
127
-        $exceptionMessage = 'This is a test exception message for '  . __FUNCTION__;
127
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
128 128
         $exceptionCode = 123;
129 129
         $exception = new QueryServiceException($exceptionMessage, $exceptionCode);
130 130
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             'test'  => 123,
221 221
         ];
222 222
 
223
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
223
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
224 224
         $exceptionCode = 456;
225 225
 
226 226
         $exception = new QueryServiceException($exceptionMessage, $exceptionCode);
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
         $criteria = [];
355 355
         $options = [];
356 356
 
357
-        $exceptionMessage = 'This is a foo test exception for ' . __FUNCTION__;
357
+        $exceptionMessage = 'This is a foo test exception for '.__FUNCTION__;
358 358
         $exceptionCode = 456;
359 359
         $exception = new QueryServiceException($exceptionMessage, $exceptionCode);
360 360
 
Please login to merge, or discard this patch.
test/unit/Persistence/Event/Listener/DateCreatedListenerTest.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,6 @@
 block discarded – undo
188 188
 
189 189
     /**
190 190
      * Assert that DateTimeFactoryException's are caught and rethrown as PersistenceException in __invoke()
191
-
192 191
      * @throws PersistenceException
193 192
      */
194 193
     public function testDateTimeFactoryFailureWillBeLoggedAndRethrownAsAPersistenceException(): void
Please login to merge, or discard this patch.