@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $nFileNr = 0; |
65 | 65 | $rs = sql('SELECT `id`, `url` FROM `pictures` WHERE `local`=0'); |
66 | 66 | while ($r = sql_fetch_array($rs)) { |
67 | - $nFileNr ++; |
|
67 | + $nFileNr++; |
|
68 | 68 | $fileparts = mb_split('/', $r['url']); |
69 | 69 | $filename = $fileparts[count($fileparts) - 1]; |
70 | 70 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | exit; |
234 | 234 | } |
235 | 235 | |
236 | - for ($i = 1; $i <= $filescount; $i ++) { |
|
236 | + for ($i = 1; $i <= $filescount; $i++) { |
|
237 | 237 | echo 'Download Paket: ' . $i . ' von ' . $filescount . "\n"; |
238 | 238 | |
239 | 239 | $fileurl = $opt['url_getsession']; |
@@ -407,11 +407,11 @@ discard block |
||
407 | 407 | if ($sSubElement != '') { |
408 | 408 | // vorheriges element zuerst schlißen |
409 | 409 | $sSubElement = ''; |
410 | - $nRecursionLevel --; |
|
410 | + $nRecursionLevel--; |
|
411 | 411 | } |
412 | 412 | |
413 | 413 | $sSubElement = mb_strtoupper($xmlReader->name); |
414 | - $nRecursionLevel ++; |
|
414 | + $nRecursionLevel++; |
|
415 | 415 | |
416 | 416 | // attribute auslesen |
417 | 417 | if ($xmlReader->moveToFirstAttribute()) { |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | } else { |
429 | 429 | if ($xmlReader->nodeType == XMLReader::END_ELEMENT) { |
430 | 430 | $sSubElement = ''; |
431 | - $nRecursionLevel --; |
|
431 | + $nRecursionLevel--; |
|
432 | 432 | } |
433 | 433 | } |
434 | 434 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | public function isDefault($id) |
27 | 27 | { |
28 | - $isDefault = (int) sql_value( |
|
28 | + $isDefault = (int)sql_value( |
|
29 | 29 | "SELECT COUNT(*) FROM `countries_list_default` WHERE `lang`='&1' AND `show`='&2'", |
30 | 30 | 0, |
31 | 31 | $this->locale, |
@@ -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; |
@@ -65,9 +65,9 @@ discard block |
||
65 | 65 | public function fetchOneBy(array $where = []): ?GeoCacheEntity |
66 | 66 | { |
67 | 67 | $queryBuilder = $this->connection->createQueryBuilder() |
68 | - ->select('*') |
|
69 | - ->from(self::TABLE) |
|
70 | - ->setMaxResults(1); |
|
68 | + ->select('*') |
|
69 | + ->from(self::TABLE) |
|
70 | + ->setMaxResults(1); |
|
71 | 71 | |
72 | 72 | if (count($where) > 0) { |
73 | 73 | foreach ($where as $column => $value) { |
@@ -95,8 +95,8 @@ discard block |
||
95 | 95 | public function fetchBy(array $where = []): array |
96 | 96 | { |
97 | 97 | $queryBuilder = $this->connection->createQueryBuilder() |
98 | - ->select('*') |
|
99 | - ->from(self::TABLE); |
|
98 | + ->select('*') |
|
99 | + ->from(self::TABLE); |
|
100 | 100 | |
101 | 101 | if (count($where) > 0) { |
102 | 102 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->short = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->short = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -193,15 +193,15 @@ discard block |
||
193 | 193 | public function getEntityFromDatabaseArray(array $data) |
194 | 194 | { |
195 | 195 | $entity = new LanguagesEntity(); |
196 | - $entity->short = (string) $data['short']; |
|
197 | - $entity->name = (string) $data['name']; |
|
198 | - $entity->transId = (int) $data['trans_id']; |
|
199 | - $entity->nativeName = (string) $data['native_name']; |
|
200 | - $entity->de = (string) $data['de']; |
|
201 | - $entity->en = (string) $data['en']; |
|
202 | - $entity->listDefaultDe = (int) $data['list_default_de']; |
|
203 | - $entity->listDefaultEn = (int) $data['list_default_en']; |
|
204 | - $entity->isTranslated = (int) $data['is_translated']; |
|
196 | + $entity->short = (string)$data['short']; |
|
197 | + $entity->name = (string)$data['name']; |
|
198 | + $entity->transId = (int)$data['trans_id']; |
|
199 | + $entity->nativeName = (string)$data['native_name']; |
|
200 | + $entity->de = (string)$data['de']; |
|
201 | + $entity->en = (string)$data['en']; |
|
202 | + $entity->listDefaultDe = (int)$data['list_default_de']; |
|
203 | + $entity->listDefaultEn = (int)$data['list_default_en']; |
|
204 | + $entity->isTranslated = (int)$data['is_translated']; |
|
205 | 205 | |
206 | 206 | return $entity; |
207 | 207 | } |
@@ -121,7 +121,7 @@ discard block |
||
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 | } |
@@ -190,12 +190,12 @@ discard block |
||
190 | 190 | public function getEntityFromDatabaseArray(array $data) |
191 | 191 | { |
192 | 192 | $entity = new GeoCacheCoordinatesEntity(); |
193 | - $entity->id = (int) $data['id']; |
|
193 | + $entity->id = (int)$data['id']; |
|
194 | 194 | $entity->dateCreated = new DateTime($data['date_created']); |
195 | - $entity->cacheId = (int) $data['cache_id']; |
|
195 | + $entity->cacheId = (int)$data['cache_id']; |
|
196 | 196 | $entity->longitude = $data['longitude']; |
197 | 197 | $entity->latitude = $data['latitude']; |
198 | - $entity->restoredBy = (int) $data['restored_by']; |
|
198 | + $entity->restoredBy = (int)$data['restored_by']; |
|
199 | 199 | |
200 | 200 | return $entity; |
201 | 201 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->word = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->word = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | public function getEntityFromDatabaseArray(array $data) |
186 | 186 | { |
187 | 187 | $entity = new SearchIgnoreEntity(); |
188 | - $entity->word = (string) $data['word']; |
|
188 | + $entity->word = (string)$data['word']; |
|
189 | 189 | |
190 | 190 | return $entity; |
191 | 191 | } |
@@ -121,7 +121,7 @@ discard block |
||
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 | } |
@@ -188,10 +188,10 @@ discard block |
||
188 | 188 | public function getEntityFromDatabaseArray(array $data) |
189 | 189 | { |
190 | 190 | $entity = new NotifyWaitingEntity(); |
191 | - $entity->id = (int) $data['id']; |
|
192 | - $entity->cacheId = (int) $data['cache_id']; |
|
193 | - $entity->userId = (int) $data['user_id']; |
|
194 | - $entity->type = (int) $data['type']; |
|
191 | + $entity->id = (int)$data['id']; |
|
192 | + $entity->cacheId = (int)$data['cache_id']; |
|
193 | + $entity->userId = (int)$data['user_id']; |
|
194 | + $entity->type = (int)$data['type']; |
|
195 | 195 | |
196 | 196 | return $entity; |
197 | 197 | } |
@@ -121,7 +121,7 @@ discard block |
||
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 | } |
@@ -189,11 +189,11 @@ discard block |
||
189 | 189 | public function getEntityFromDatabaseArray(array $data) |
190 | 190 | { |
191 | 191 | $entity = new GeodbSearchEntity(); |
192 | - $entity->id = (int) $data['id']; |
|
193 | - $entity->locId = (int) $data['loc_id']; |
|
194 | - $entity->sort = (string) $data['sort']; |
|
195 | - $entity->simple = (string) $data['simple']; |
|
196 | - $entity->simplehash = (int) $data['simplehash']; |
|
192 | + $entity->id = (int)$data['id']; |
|
193 | + $entity->locId = (int)$data['loc_id']; |
|
194 | + $entity->sort = (string)$data['sort']; |
|
195 | + $entity->simple = (string)$data['simple']; |
|
196 | + $entity->simplehash = (int)$data['simplehash']; |
|
197 | 197 | |
198 | 198 | return $entity; |
199 | 199 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->wpOc = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->wpOc = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | public function getEntityFromDatabaseArray(array $data) |
187 | 187 | { |
188 | 188 | $entity = new GeoCacheWaypointPoolEntity(); |
189 | - $entity->wpOc = (string) $data['wp_oc']; |
|
190 | - $entity->uuid = (string) $data['uuid']; |
|
189 | + $entity->wpOc = (string)$data['wp_oc']; |
|
190 | + $entity->uuid = (string)$data['uuid']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |