Test Failed
Pull Request — master (#8)
by Alex
04:30
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.
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/PersistServiceTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             ->method('hasId')
224 224
             ->willReturn(false);
225 225
 
226
-        $exceptionMessage = 'Test exception message for ' . __FUNCTION__;
226
+        $exceptionMessage = 'Test exception message for '.__FUNCTION__;
227 227
         $exceptionCode = 456;
228 228
         $exception = new \Error($exceptionMessage, $exceptionCode);
229 229
 
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
             ->with(EntityEventName::DELETE, $entity, $options)
335 335
             ->willReturn($event);
336 336
 
337
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
337
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
338 338
         $exceptionCode = 123;
339 339
         $exception = new EventListenerException($exceptionMessage, $exceptionCode);
340 340
 
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
                 'The \'entity\' argument must be an object of type \'%s\'; \'%s\' provided in \'%s\'',
650 650
                 $this->entityName,
651 651
                 get_class($entity),
652
-                PersistService::class . '::refresh'
652
+                PersistService::class.'::refresh'
653 653
             )
654 654
         );
655 655
 
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
         /** @var EntityInterface&MockObject $entity */
674 674
         $entity = $this->createMock(EntityInterface::class);
675 675
 
676
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
676
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
677 677
         $exceptionCode = 987;
678 678
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
679 679
 
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
             $this->logger
753 753
         );
754 754
 
755
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
755
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
756 756
         $exceptionCode = 123;
757 757
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
758 758
 
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
             $this->logger
801 801
         );
802 802
 
803
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
803
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
804 804
         $exceptionCode = 123;
805 805
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
806 806
 
@@ -848,7 +848,7 @@  discard block
 block discarded – undo
848 848
             $this->logger
849 849
         );
850 850
 
851
-        $exceptionMessage = 'This is a test exception message for ' . __FUNCTION__;
851
+        $exceptionMessage = 'This is a test exception message for '.__FUNCTION__;
852 852
         $exceptionCode = 123;
853 853
         $exception = new \RuntimeException($exceptionMessage, $exceptionCode);
854 854
 
Please login to merge, or discard this patch.