@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $entity->__set($entity::getDateModifiedField(), $this->getFormattedDate()); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - if (! $defer) { |
|
| 102 | + if (!$defer) { |
|
| 103 | 103 | $this->persistEntity(Statement::INSERT, $entity, $entity->__storable()); |
| 104 | 104 | |
| 105 | 105 | return; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | $entity->__set($entity::getDateModifiedField(), $this->getFormattedDate()); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - if (! $defer) { |
|
| 134 | + if (!$defer) { |
|
| 135 | 135 | $this->persistEntity(Statement::UPDATE, $entity, $entity->__changed()); |
| 136 | 136 | |
| 137 | 137 | return; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function delete(Entity $entity, bool $defer = true): void |
| 161 | 161 | { |
| 162 | - if (! $defer) { |
|
| 162 | + if (!$defer) { |
|
| 163 | 163 | $this->persistEntity(Statement::DELETE, $entity); |
| 164 | 164 | |
| 165 | 165 | return; |
@@ -301,13 +301,13 @@ discard block |
||
| 301 | 301 | $query = $this->getQuery($queryBuilder, $type, $idField, $entity->{$idField}, $properties); |
| 302 | 302 | |
| 303 | 303 | // If the execute failed |
| 304 | - if (! $query->execute()) { |
|
| 304 | + if (!$query->execute()) { |
|
| 305 | 305 | // Throw a fail exception |
| 306 | 306 | throw new ExecuteException($query->getError()); |
| 307 | 307 | } |
| 308 | 308 | |
| 309 | 309 | if ( |
| 310 | - ! $entity->__isset($idField) |
|
| 310 | + !$entity->__isset($idField) |
|
| 311 | 311 | && $lastInsertId = $this->adapter->lastInsertId($entity::getTableName(), $idField) |
| 312 | 312 | ) { |
| 313 | 313 | $entity->__set($idField, $lastInsertId); |
@@ -262,7 +262,7 @@ |
||
| 262 | 262 | $type = $propertyTypes[$property] ?? null; |
| 263 | 263 | |
| 264 | 264 | // If there is no type specified just return the value |
| 265 | - if (null === $type || ! is_string($value)) { |
|
| 265 | + if (null === $type || !is_string($value)) { |
|
| 266 | 266 | return $value; |
| 267 | 267 | } |
| 268 | 268 | |