Completed
Push — master ( e9ba41...791922 )
by Alex
14s queued 12s
created
test/phpunit/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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     {
169 169
         $entityName = $this->getEntityName();
170 170
 
171
-        if (! $entity instanceof $entityName) {
171
+        if (!$entity instanceof $entityName) {
172 172
             throw new PersistenceException(
173 173
                 sprintf(
174 174
                     'The \'entity\' argument must be an object of type \'%s\'; \'%s\' provided in \'%s\'',
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     {
252 252
         $entityName = $this->getEntityName();
253 253
 
254
-        if (! $entity instanceof $entityName) {
254
+        if (!$entity instanceof $entityName) {
255 255
             throw new PersistenceException(
256 256
                 sprintf(
257 257
                     'The \'entity\' argument must be an object of type \'%s\'; \'%s\' provided in \'%s\'',
Please login to merge, or discard this patch.
src/Persistence/Event/Listener/EntityValidationListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             throw new InvalidArgumentException($errorMessage);
70 70
         }
71 71
 
72
-        if (! $entity instanceof EntityInterface || !$entity instanceof $entityName) {
72
+        if (!$entity instanceof EntityInterface || !$entity instanceof $entityName) {
73 73
             $errorMessage = sprintf(
74 74
                 'The entity class of type \'%s\' does not match the expected \'%s\' for event \'%s\'',
75 75
                 (is_object($entity) ? get_class($entity) : gettype($entity)),
Please login to merge, or discard this patch.
src/Persistence/Event/Listener/DateUpdatedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $entity = $event->getEntity();
25 25
 
26
-        if (null === $entity || ! $entity instanceof DateUpdatedAwareInterface) {
26
+        if (null === $entity || !$entity instanceof DateUpdatedAwareInterface) {
27 27
             return;
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Persistence/Event/Listener/DateDeletedListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         if (
30 30
             null === $entity
31
-            || (! $entity instanceof DateDeletedAwareInterface)
31
+            || (!$entity instanceof DateDeletedAwareInterface)
32 32
             || DeleteMode::HARD === $deleteMode
33 33
         ) {
34 34
             return;
Please login to merge, or discard this patch.
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.
src/Persistence/Event/Listener/CascadeSaveListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $entity = $event->getEntity();
50 50
 
51 51
         if (null === $entity) {
52
-            $errorMessage= sprintf('Missing required entity in \'%s\'', static::class);
52
+            $errorMessage = sprintf('Missing required entity in \'%s\'', static::class);
53 53
             $this->logger->error($errorMessage);
54 54
 
55 55
             throw new PersistenceException($errorMessage);
Please login to merge, or discard this patch.