@@ -23,7 +23,7 @@ |
||
| 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 | |
@@ -288,7 +288,7 @@ |
||
| 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 | |
@@ -28,7 +28,7 @@ |
||
| 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; |
@@ -67,7 +67,7 @@ |
||
| 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)), |
@@ -168,7 +168,7 @@ discard block |
||
| 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 |
||
| 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\'', |
@@ -251,7 +251,7 @@ |
||
| 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 | |