@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | if (count($where) > 0) { |
83 | 83 | foreach ($where as $column => $value) { |
84 | - $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
84 | + $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | if (count($where) > 0) { |
115 | 115 | foreach ($where as $column => $value) { |
116 | - $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
116 | + $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $databaseArray |
190 | 190 | ); |
191 | 191 | |
192 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
192 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
193 | 193 | |
194 | 194 | return $entity; |
195 | 195 | } |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | ['cache_id' => $entity->cacheId] |
218 | 218 | ); |
219 | 219 | |
220 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
220 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
221 | 221 | |
222 | 222 | return $entity; |
223 | 223 | } |
@@ -307,38 +307,38 @@ discard block |
||
307 | 307 | $entity = new GeoCacheEntity(); |
308 | 308 | $entity->cacheId = $data['cache_id']; |
309 | 309 | $entity->uuid = $data['uuid']; |
310 | - $entity->node = (int) $data['node']; |
|
310 | + $entity->node = (int)$data['node']; |
|
311 | 311 | $entity->dateCreated = new DateTime($data['date_created']); |
312 | - $entity->isPublishdate = (bool) $data['is_publishdate']; |
|
312 | + $entity->isPublishdate = (bool)$data['is_publishdate']; |
|
313 | 313 | $entity->lastModified = new DateTime($data['last_modified']); |
314 | - $entity->okapiSyncbase = (int) $data['okapi_syncbase']; |
|
314 | + $entity->okapiSyncbase = (int)$data['okapi_syncbase']; |
|
315 | 315 | $entity->listingLastModified = new DateTime($data['listing_last_modified']); |
316 | 316 | $entity->metaLastModified = new DateTime($data['meta_last_modified']); |
317 | - $entity->userId = (int) $data['user_id']; |
|
317 | + $entity->userId = (int)$data['user_id']; |
|
318 | 318 | $entity->name = $data['name']; |
319 | - $entity->longitude = (double) $data['longitude']; |
|
320 | - $entity->latitude = (double) $data['latitude']; |
|
321 | - $entity->type = (int) $data['type']; |
|
322 | - $entity->status = (int) $data['status']; |
|
319 | + $entity->longitude = (double)$data['longitude']; |
|
320 | + $entity->latitude = (double)$data['latitude']; |
|
321 | + $entity->type = (int)$data['type']; |
|
322 | + $entity->status = (int)$data['status']; |
|
323 | 323 | $entity->country = $data['country']; |
324 | 324 | $entity->dateHidden = new DateTime($data['date_hidden']); |
325 | - $entity->size = (int) $data['size']; |
|
326 | - $entity->difficulty = (int) $data['difficulty']; |
|
327 | - $entity->terrain = (int) $data['terrain']; |
|
325 | + $entity->size = (int)$data['size']; |
|
326 | + $entity->difficulty = (int)$data['difficulty']; |
|
327 | + $entity->terrain = (int)$data['terrain']; |
|
328 | 328 | $entity->logpw = $data['logpw']; |
329 | - $entity->searchTime = (float) $data['search_time']; |
|
330 | - $entity->wayLength = (float) $data['way_length']; |
|
329 | + $entity->searchTime = (float)$data['search_time']; |
|
330 | + $entity->wayLength = (float)$data['way_length']; |
|
331 | 331 | $entity->wpGc = $data['wp_gc']; |
332 | 332 | $entity->wpGcMaintained = $data['wp_gc_maintained']; |
333 | 333 | $entity->wpOc = $data['wp_oc']; |
334 | 334 | $entity->descLanguages = $data['desc_languages']; |
335 | 335 | $entity->defaultDesclang = $data['default_desclang']; |
336 | 336 | $entity->dateActivate = new DateTime($data['date_activate']); |
337 | - $entity->needNpaRecalc = (bool) $data['need_npa_recalc']; |
|
338 | - $entity->showCachelists = (bool) $data['show_cachelists']; |
|
339 | - $entity->protectOldCoords = (bool) $data['protect_old_coords']; |
|
340 | - $entity->needsMaintenance = (bool) $data['needs_maintenance']; |
|
341 | - $entity->listingOutdated = (bool) $data['listing_outdated']; |
|
337 | + $entity->needNpaRecalc = (bool)$data['need_npa_recalc']; |
|
338 | + $entity->showCachelists = (bool)$data['show_cachelists']; |
|
339 | + $entity->protectOldCoords = (bool)$data['protect_old_coords']; |
|
340 | + $entity->needsMaintenance = (bool)$data['needs_maintenance']; |
|
341 | + $entity->listingOutdated = (bool)$data['listing_outdated']; |
|
342 | 342 | $entity->flagsLastModified = new DateTime($data['flags_last_modified']); |
343 | 343 | |
344 | 344 | return $entity; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ->from(self::TABLE); |
84 | 84 | |
85 | 85 | foreach ($where as $column => $value) { |
86 | - $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
86 | + $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | foreach ($order as $field => $direction) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | if (count($where) > 0) { |
127 | 127 | foreach ($where as $column => $value) { |
128 | - $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
128 | + $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
129 | 129 | } |
130 | 130 | } |
131 | 131 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | $databaseArray |
193 | 193 | ); |
194 | 194 | |
195 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
195 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
196 | 196 | |
197 | 197 | return $entity; |
198 | 198 | } |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | ['id' => $entity->id] |
221 | 221 | ); |
222 | 222 | |
223 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
223 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
224 | 224 | |
225 | 225 | return $entity; |
226 | 226 | } |