Completed
Push — development ( cc33dc...8bc9ee )
by Thomas
59s queued 12s
created
htdocs_symfony/src/Repository/CountriesRepository.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             $databaseArray
141 141
         );
142 142
 
143
-        $entity->short = (int) $this->connection->lastInsertId();
143
+        $entity->short = (int)$this->connection->lastInsertId();
144 144
 
145 145
         return $entity;
146 146
     }
@@ -249,17 +249,17 @@  discard block
 block discarded – undo
249 249
     public function getEntityFromDatabaseArray(array $data)
250 250
     : CountriesEntity {
251 251
         $entity = new CountriesEntity();
252
-        $entity->short = (string) $data['short'];
253
-        $entity->name = (string) $data['name'];
254
-        $entity->transId = (int) $data['trans_id'];
255
-        $entity->de = (string) $data['de'];
256
-        $entity->en = (string) $data['en'];
257
-        $entity->listDefaultDe = (int) $data['list_default_de'];
258
-        $entity->sortDe = (string) $data['sort_de'];
259
-        $entity->listDefaultEn = (int) $data['list_default_en'];
260
-        $entity->sortEn = (string) $data['sort_en'];
261
-        $entity->admDisplay2 = (int) $data['adm_display2'];
262
-        $entity->admDisplay3 = (int) $data['adm_display3'];
252
+        $entity->short = (string)$data['short'];
253
+        $entity->name = (string)$data['name'];
254
+        $entity->transId = (int)$data['trans_id'];
255
+        $entity->de = (string)$data['de'];
256
+        $entity->en = (string)$data['en'];
257
+        $entity->listDefaultDe = (int)$data['list_default_de'];
258
+        $entity->sortDe = (string)$data['sort_de'];
259
+        $entity->listDefaultEn = (int)$data['list_default_en'];
260
+        $entity->sortEn = (string)$data['sort_en'];
261
+        $entity->admDisplay2 = (int)$data['adm_display2'];
262
+        $entity->admDisplay3 = (int)$data['adm_display3'];
263 263
 
264 264
         return $entity;
265 265
     }
Please login to merge, or discard this patch.
htdocs/search.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 $load_query = false;
89 89
 $show_lastsearchbutton = true;
90 90
 
91
-$list_caches = isset($_REQUEST['addCache']) &&  $_REQUEST['addCache'] >= 1 ? $_REQUEST['addCache'] : '';
91
+$list_caches = isset($_REQUEST['addCache']) && $_REQUEST['addCache'] >= 1 ? $_REQUEST['addCache'] : '';
92 92
 $added_waypoints = 0;
93 93
 
94 94
 if (isset($_REQUEST['queryid']) || isset($_REQUEST['showresult'])) {  // Ocprop: showresult, queryid
@@ -255,20 +255,20 @@  discard block
 block discarded – undo
255 255
     }
256 256
 
257 257
     // get the search options parameters and store them in the queries table (to view "the next page")
258
-    $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? (int) $_REQUEST['f_userowner'] : 0; // Ocprop
259
-    $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? (int) $_REQUEST['f_userfound'] : 0; // Ocprop
260
-    $options['f_unpublished'] = isset($_REQUEST['f_unpublished']) ? (int) $_REQUEST['f_unpublished'] : 0;
261
-    $options['f_disabled'] = isset($_REQUEST['f_disabled']) ? (int) $_REQUEST['f_disabled'] : 0;
262
-    $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? (int) $_REQUEST['f_inactive'] : 1; // Ocprop
258
+    $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? (int)$_REQUEST['f_userowner'] : 0; // Ocprop
259
+    $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? (int)$_REQUEST['f_userfound'] : 0; // Ocprop
260
+    $options['f_unpublished'] = isset($_REQUEST['f_unpublished']) ? (int)$_REQUEST['f_unpublished'] : 0;
261
+    $options['f_disabled'] = isset($_REQUEST['f_disabled']) ? (int)$_REQUEST['f_disabled'] : 0;
262
+    $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? (int)$_REQUEST['f_inactive'] : 1; // Ocprop
263 263
     // f_inactive formerly was used for both, archived and disabled caches.
264 264
     // After adding the separate f_disabled option, it is used only for archived
265 265
     // caches, but keeps its name for compatibility with existing stored or
266 266
     // external searches.
267
-    $options['f_ignored'] = isset($_REQUEST['f_ignored']) ? (int) $_REQUEST['f_ignored'] : 1;
268
-    $options['f_otherPlatforms'] = isset($_REQUEST['f_otherPlatforms']) ? (int) $_REQUEST['f_otherPlatforms'] : 0;
269
-    $options['f_geokrets'] = isset($_REQUEST['f_geokrets']) ? (int) $_REQUEST['f_geokrets'] : 0;
270
-    $options['expert'] = isset($_REQUEST['expert']) ? (int) $_REQUEST['expert'] : 0; // Ocprop: 0
271
-    $options['showresult'] = isset($_REQUEST['showresult']) ? (int) $_REQUEST['showresult'] : 0;
267
+    $options['f_ignored'] = isset($_REQUEST['f_ignored']) ? (int)$_REQUEST['f_ignored'] : 1;
268
+    $options['f_otherPlatforms'] = isset($_REQUEST['f_otherPlatforms']) ? (int)$_REQUEST['f_otherPlatforms'] : 0;
269
+    $options['f_geokrets'] = isset($_REQUEST['f_geokrets']) ? (int)$_REQUEST['f_geokrets'] : 0;
270
+    $options['expert'] = isset($_REQUEST['expert']) ? (int)$_REQUEST['expert'] : 0; // Ocprop: 0
271
+    $options['showresult'] = isset($_REQUEST['showresult']) ? (int)$_REQUEST['showresult'] : 0;
272 272
     $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML'; // Ocprop: HTML
273 273
     $options['bbox'] = isset($_REQUEST['bbox']) ? $_REQUEST['bbox'] : false;
274 274
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     } elseif (isset($_REQUEST['searchbyowner'])) { // Ocprop
323 323
         $options['searchtype'] = 'byowner';
324 324
 
325
-        $options['ownerid'] = isset($_REQUEST['ownerid']) ? (int) $_REQUEST['ownerid'] : 0;
325
+        $options['ownerid'] = isset($_REQUEST['ownerid']) ? (int)$_REQUEST['ownerid'] : 0;
326 326
         $options['owner'] = isset($_REQUEST['owner']) ? stripslashes($_REQUEST['owner']) : '';
327 327
 
328 328
         if (isset($options['owner'])) {
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     } elseif (isset($_REQUEST['searchbyfinder'])) { // Ocprop
339 339
         $options['searchtype'] = 'byfinder';
340 340
 
341
-        $options['finderid'] = isset($_REQUEST['finderid']) ? (int) $_REQUEST['finderid'] : 0;
341
+        $options['finderid'] = isset($_REQUEST['finderid']) ? (int)$_REQUEST['finderid'] : 0;
342 342
         $options['finder'] = isset($_REQUEST['finder']) ? stripslashes($_REQUEST['finder']) : '';
343 343
         $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7'; // Ocprop
344 344
 
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
             $options['lon_min'] = isset($_REQUEST['lon_min']) ? $_REQUEST['lon_min'] : 0;
394 394
         }
395 395
 
396
-        $options['distance'] = isset($_REQUEST['distance']) ? (int) $_REQUEST['distance'] : 0;
396
+        $options['distance'] = isset($_REQUEST['distance']) ? (int)$_REQUEST['distance'] : 0;
397 397
     } elseif (isset($_REQUEST['searchbyfulltext'])) {
398 398
         $options['searchtype'] = 'byfulltext';
399 399
 
@@ -460,11 +460,11 @@  discard block
 block discarded – undo
460 460
     $options['cachetype'] = isset($_REQUEST['cachetype']) ? $_REQUEST['cachetype'] : '';
461 461
 
462 462
     $options['cachesize'] = isset($_REQUEST['cachesize']) ? $_REQUEST['cachesize'] : '';
463
-    $options['difficultymin'] = isset($_REQUEST['difficultymin']) ? (int) $_REQUEST['difficultymin'] : 0;
464
-    $options['difficultymax'] = isset($_REQUEST['difficultymax']) ? (int) $_REQUEST['difficultymax'] : 0;
465
-    $options['terrainmin'] = isset($_REQUEST['terrainmin']) ? (int) $_REQUEST['terrainmin'] : 0;
466
-    $options['terrainmax'] = isset($_REQUEST['terrainmax']) ? (int) $_REQUEST['terrainmax'] : 0;
467
-    $options['recommendationmin'] = isset($_REQUEST['recommendationmin']) ? (int) $_REQUEST['recommendationmin'] : 0;
463
+    $options['difficultymin'] = isset($_REQUEST['difficultymin']) ? (int)$_REQUEST['difficultymin'] : 0;
464
+    $options['difficultymax'] = isset($_REQUEST['difficultymax']) ? (int)$_REQUEST['difficultymax'] : 0;
465
+    $options['terrainmin'] = isset($_REQUEST['terrainmin']) ? (int)$_REQUEST['terrainmin'] : 0;
466
+    $options['terrainmax'] = isset($_REQUEST['terrainmax']) ? (int)$_REQUEST['terrainmax'] : 0;
467
+    $options['recommendationmin'] = isset($_REQUEST['recommendationmin']) ? (int)$_REQUEST['recommendationmin'] : 0;
468 468
 
469 469
     if (in_array($options['searchtype'], ['byort', 'byplz', 'bydistance', 'bywaypoint'])) {
470 470
         // For distance-based searches, sort by distance instead of name.
@@ -1297,11 +1297,11 @@  discard block
 block discarded – undo
1297 1297
 
1298 1298
         //add selected caches to selected cachelist
1299 1299
         if (isset($_REQUEST['addToList']) && isset($_REQUEST['addCache']) && isset($_REQUEST['selectCachelist'])) {
1300
-            $list_caches_= $_REQUEST['addToList'];
1300
+            $list_caches_ = $_REQUEST['addToList'];
1301 1301
             $added_waypoints = addToList($list_caches);
1302
-            $addCachelist= cachelist::getListById((int) $_REQUEST['selectCachelist']); // null for invalid ID
1302
+            $addCachelist = cachelist::getListById((int)$_REQUEST['selectCachelist']); // null for invalid ID
1303 1303
         } elseif (isset($_REQUEST['addToList'])) {
1304
-            $addCachelist= cachelist::getListById((int) $_REQUEST['selectCachelist']); // null for invalid ID
1304
+            $addCachelist = cachelist::getListById((int)$_REQUEST['selectCachelist']); // null for invalid ID
1305 1305
             $error_addCaches = true;
1306 1306
         }
1307 1307
 
@@ -1773,7 +1773,7 @@  discard block
 block discarded – undo
1773 1773
     $tpl->assign('searchtype_byname', $options['searchtype'] == 'byname');
1774 1774
 
1775 1775
     // distance
1776
-    $tpl->assign('distance', isset($options['distance']) ? (int) $options['distance'] : DEFAULT_SEARCH_DISTANCE);
1776
+    $tpl->assign('distance', isset($options['distance']) ? (int)$options['distance'] : DEFAULT_SEARCH_DISTANCE);
1777 1777
 
1778 1778
     if (!isset($options['unit'])) {
1779 1779
         $options['unit'] = DEFAULT_DISTANCE_UNIT;
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheCoordinatesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             $databaseArray
161 161
         );
162 162
 
163
-        $entity->id = (int) $this->connection->lastInsertId();
163
+        $entity->id = (int)$this->connection->lastInsertId();
164 164
 
165 165
         return $entity;
166 166
     }
@@ -241,12 +241,12 @@  discard block
 block discarded – undo
241 241
     public function getEntityFromDatabaseArray(array $data)
242 242
     : GeoCacheCoordinatesEntity {
243 243
         $entity = new GeoCacheCoordinatesEntity();
244
-        $entity->id = (int) $data['id'];
244
+        $entity->id = (int)$data['id'];
245 245
         $entity->dateCreated = new DateTime($data['date_created']);
246
-        $entity->cacheId = (int) $data['cache_id'];
246
+        $entity->cacheId = (int)$data['cache_id'];
247 247
         $entity->longitude = $data['longitude'];
248 248
         $entity->latitude = $data['latitude'];
249
-        $entity->restoredBy = (int) $data['restored_by'];
249
+        $entity->restoredBy = (int)$data['restored_by'];
250 250
         if ($entity->restoredBy != 0) {
251 251
             $entity->user = $this->userRepository->fetchOneById($entity->restoredBy);
252 252
         }
Please login to merge, or discard this patch.