Completed
Push — master ( aee5b1...e9ba41 )
by Alex
04:42 queued 04:40
created
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/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/AbstractEntityRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@
 block discarded – undo
251 251
             );
252 252
         }
253 253
 
254
-        if (! is_object($entity)) {
254
+        if (!is_object($entity)) {
255 255
             $id = (int) $entity;
256 256
             $entity = $this->find($id);
257 257
 
Please login to merge, or discard this patch.
src/Persistence/Event/Listener/CascadeSaveListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         if (null === $entityOrCollection) {
147 147
             $isNullable = isset($mapping['joinColumns'][0]['nullable'])
148
-                ? (bool)$mapping['joinColumns'][0]['nullable']
148
+                ? (bool) $mapping['joinColumns'][0]['nullable']
149 149
                 : false;
150 150
 
151 151
             if (!$isNullable) {
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         ClassMetadata $sourceMetadata,
225 225
         ClassMetadata $targetMetadata
226 226
     ) {
227
-        $methodName = 'get' . ucfirst($fieldName);
227
+        $methodName = 'get'.ucfirst($fieldName);
228 228
 
229 229
         if (!method_exists($sourceEntity, $methodName)) {
230 230
             $errorMessage = sprintf(
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.