Passed
Pull Request — master (#3)
by Alex
03:31
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/Query/QueryService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@
 block discarded – undo
288 288
             }
289 289
         }
290 290
 
291
-        if (! empty($options[QueryServiceOption::DQL]) && $query instanceof Query) {
291
+        if (!empty($options[QueryServiceOption::DQL]) && $query instanceof Query) {
292 292
             $query->setDQL($options[QueryServiceOption::DQL]);
293 293
         }
294 294
 
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/Event/Listener/EntityValidationListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             throw new InvalidArgumentException($errorMessage);
68 68
         }
69 69
 
70
-        if (! $entity instanceof EntityInterface || $entity instanceof $eventName) {
70
+        if (!$entity instanceof EntityInterface || $entity instanceof $eventName) {
71 71
             $errorMessage = sprintf(
72 72
                 'The entity class of type \'%s\' does not match the expected \'%s\' for event \'%s\'',
73 73
                 (is_object($entity) ? get_class($entity) : gettype($entity)),
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.