Completed
Pull Request — development (#688)
by Thomas
04:49
created
htdocs/src/Oc/GeoCache/Persistence/GeoCacheLog/GeoCacheLogRepository.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         if (count($where) > 0) {
82 82
             foreach ($where as $column => $value) {
83
-                $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
83
+                $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
84 84
             }
85 85
         }
86 86
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         if (count($where) > 0) {
114 114
             foreach ($where as $column => $value) {
115
-                $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
115
+                $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
116 116
             }
117 117
         }
118 118
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             $databaseArray
186 186
         );
187 187
 
188
-        $entity->id = (int) $this->connection->lastInsertId();
188
+        $entity->id = (int)$this->connection->lastInsertId();
189 189
 
190 190
         return $entity;
191 191
     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             ['id' => $entity->id]
214 214
         );
215 215
 
216
-        $entity->id = (int) $this->connection->lastInsertId();
216
+        $entity->id = (int)$this->connection->lastInsertId();
217 217
 
218 218
         return $entity;
219 219
     }
@@ -287,27 +287,27 @@  discard block
 block discarded – undo
287 287
     public function getEntityFromDatabaseArray(array $data)
288 288
     {
289 289
         $entity = new GeoCacheLogEntity();
290
-        $entity->id = (int) $data['id'];
290
+        $entity->id = (int)$data['id'];
291 291
         $entity->uuid = $data['uuid'];
292
-        $entity->node = (int) $data['node'];
292
+        $entity->node = (int)$data['node'];
293 293
         $entity->dateCreated = new DateTime($data['date_created']);
294 294
         $entity->entryLastModified = new DateTime($data['entry_last_modified']);
295 295
         $entity->lastModified = new DateTime($data['last_modified']);
296
-        $entity->okapiSyncbase = (int) $data['okapi_syncbase'];
296
+        $entity->okapiSyncbase = (int)$data['okapi_syncbase'];
297 297
         $entity->logLastModified = new DateTime($data['log_last_modified']);
298
-        $entity->cacheId = (int) $data['cache_id'];
299
-        $entity->userId = (int) $data['user_id'];
300
-        $entity->type = (int) $data['type'];
301
-        $entity->ocTeamComment = (bool) $data['oc_team_comment'];
298
+        $entity->cacheId = (int)$data['cache_id'];
299
+        $entity->userId = (int)$data['user_id'];
300
+        $entity->type = (int)$data['type'];
301
+        $entity->ocTeamComment = (bool)$data['oc_team_comment'];
302 302
         $entity->date = new DateTime($data['date']);
303 303
         $entity->orderDate = new DateTime($data['order_date']);
304
-        $entity->needsMaintenance = (bool) $data['needs_maintenance'];
305
-        $entity->listingOutdated = (bool) $data['listing_outdated'];
304
+        $entity->needsMaintenance = (bool)$data['needs_maintenance'];
305
+        $entity->listingOutdated = (bool)$data['listing_outdated'];
306 306
         $entity->text = $data['text'];
307
-        $entity->textHtml = (bool) $data['text_html'];
308
-        $entity->textHtmledit = (bool) $data['text_htmledit'];
309
-        $entity->ownerNotified = (bool) $data['owner_notified'];
310
-        $entity->picture = (int) $data['picture'];
307
+        $entity->textHtml = (bool)$data['text_html'];
308
+        $entity->textHtmledit = (bool)$data['text_htmledit'];
309
+        $entity->ownerNotified = (bool)$data['owner_notified'];
310
+        $entity->picture = (int)$data['picture'];
311 311
 
312 312
         return $entity;
313 313
     }
Please login to merge, or discard this patch.