@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $databaseArray |
185 | 185 | ); |
186 | 186 | |
187 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
187 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
188 | 188 | |
189 | 189 | return $entity; |
190 | 190 | } |
@@ -298,38 +298,38 @@ discard block |
||
298 | 298 | $entity = new GeoCacheEntity(); |
299 | 299 | $entity->cacheId = $data['cache_id']; |
300 | 300 | $entity->uuid = $data['uuid']; |
301 | - $entity->node = (int) $data['node']; |
|
301 | + $entity->node = (int)$data['node']; |
|
302 | 302 | $entity->dateCreated = new DateTime($data['date_created']); |
303 | - $entity->isPublishdate = (bool) $data['is_publishdate']; |
|
303 | + $entity->isPublishdate = (bool)$data['is_publishdate']; |
|
304 | 304 | $entity->lastModified = new DateTime($data['last_modified']); |
305 | - $entity->okapiSyncbase = (int) $data['okapi_syncbase']; |
|
305 | + $entity->okapiSyncbase = (int)$data['okapi_syncbase']; |
|
306 | 306 | $entity->listingLastModified = new DateTime($data['listing_last_modified']); |
307 | 307 | $entity->metaLastModified = new DateTime($data['meta_last_modified']); |
308 | - $entity->userId = (int) $data['user_id']; |
|
308 | + $entity->userId = (int)$data['user_id']; |
|
309 | 309 | $entity->name = $data['name']; |
310 | - $entity->longitude = (double) $data['longitude']; |
|
311 | - $entity->latitude = (double) $data['latitude']; |
|
312 | - $entity->type = (int) $data['type']; |
|
313 | - $entity->status = (int) $data['status']; |
|
310 | + $entity->longitude = (double)$data['longitude']; |
|
311 | + $entity->latitude = (double)$data['latitude']; |
|
312 | + $entity->type = (int)$data['type']; |
|
313 | + $entity->status = (int)$data['status']; |
|
314 | 314 | $entity->country = $data['country']; |
315 | 315 | $entity->dateHidden = new DateTime($data['date_hidden']); |
316 | - $entity->size = (int) $data['size']; |
|
317 | - $entity->difficulty = (int) $data['difficulty']; |
|
318 | - $entity->terrain = (int) $data['terrain']; |
|
316 | + $entity->size = (int)$data['size']; |
|
317 | + $entity->difficulty = (int)$data['difficulty']; |
|
318 | + $entity->terrain = (int)$data['terrain']; |
|
319 | 319 | $entity->logpw = $data['logpw']; |
320 | - $entity->searchTime = (float) $data['search_time']; |
|
321 | - $entity->wayLength = (float) $data['way_length']; |
|
320 | + $entity->searchTime = (float)$data['search_time']; |
|
321 | + $entity->wayLength = (float)$data['way_length']; |
|
322 | 322 | $entity->wpGc = $data['wp_gc']; |
323 | 323 | $entity->wpGcMaintained = $data['wp_gc_maintained']; |
324 | 324 | $entity->wpOc = $data['wp_oc']; |
325 | 325 | $entity->descLanguages = $data['desc_languages']; |
326 | 326 | $entity->defaultDesclang = $data['default_desclang']; |
327 | 327 | $entity->dateActivate = new DateTime($data['date_activate']); |
328 | - $entity->needNpaRecalc = (bool) $data['need_npa_recalc']; |
|
329 | - $entity->showCachelists = (bool) $data['show_cachelists']; |
|
330 | - $entity->protectOldCoords = (bool) $data['protect_old_coords']; |
|
331 | - $entity->needsMaintenance = (bool) $data['needs_maintenance']; |
|
332 | - $entity->listingOutdated = (bool) $data['listing_outdated']; |
|
328 | + $entity->needNpaRecalc = (bool)$data['need_npa_recalc']; |
|
329 | + $entity->showCachelists = (bool)$data['show_cachelists']; |
|
330 | + $entity->protectOldCoords = (bool)$data['protect_old_coords']; |
|
331 | + $entity->needsMaintenance = (bool)$data['needs_maintenance']; |
|
332 | + $entity->listingOutdated = (bool)$data['listing_outdated']; |
|
333 | 333 | $entity->flagsLastModified = new DateTime($data['flags_last_modified']); |
334 | 334 | |
335 | 335 | return $entity; |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->country = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->country = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->typeId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->typeId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |