Completed
Push — master ( ebd1fd...6faa20 )
by Melech
04:36
created
src/Valkyrja/ORM/Persisters/Persister.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Valkyrja/ORM/Entities/EntityTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.