Completed
Push — development ( 252715...941400 )
by Thomas
44s
created
htdocs/lib2/menu.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                         'parent' => MNU_MAP,
79 79
                     ];
80 80
                     $menuitem[MNU_MAP]['subitems'][] = $menu_map;
81
-                    ++ $menu_map;
81
+                    ++$menu_map;
82 82
                 }
83 83
             }
84 84
         }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $rsSubmenu = sqlf('SELECT `id` FROM `sys_menu` WHERE `parent`=0 ORDER BY `parent` ASC, `position` ASC');
106 106
         while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) {
107 107
             $aMenu[MNU_ROOT]['subitems'][$nPos] = $rSubmenu['id'];
108
-            $nPos ++;
108
+            $nPos++;
109 109
         }
110 110
         sql_free_result($rsSubmenu);
111 111
         fwrite($f, "\n");
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             );
143 143
             while ($rSubmenu = sql_fetch_assoc($rsSubmenu)) {
144 144
                 $aMenu[$r['id']]['subitems'][$nPos] = $rSubmenu['id'];
145
-                $nPos ++;
145
+                $nPos++;
146 146
             }
147 147
             sql_free_result($rsSubmenu);
148 148
         }
Please login to merge, or discard this patch.
htdocs/lib2/logic/coordinate.class.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
                 0,
156 156
             ];
157 157
         }
158
-        $lw = (float) $this->nLon;
159
-        $bw = (float) $this->nLat;
158
+        $lw = (float)$this->nLon;
159
+        $bw = (float)$this->nLat;
160 160
 
161 161
         //WGS84 Datum
162 162
         //Große Halbachse a und Abplattung f
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         if ($lzn < 10) {
204 204
             $lz = '0' . $lzn;
205 205
         }
206
-        $bd = (int) (1 + ($bw + 80) / 8);
206
+        $bd = (int)(1 + ($bw + 80) / 8);
207 207
         $bz = substr($b_sel, $bd - 1, 1);
208 208
 
209 209
         //Geographische Breite in Radianten br
@@ -248,20 +248,20 @@  discard block
 block discarded – undo
248 248
         $ew = 0.9996 * ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 +
249 249
                 $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120) + 500000;
250 250
 
251
-        $nk = $nw - (int) $nw;
251
+        $nk = $nw - (int)$nw;
252 252
         if ($nk < 0.5) {
253
-            $nw = '' . (int) $nw;
253
+            $nw = '' . (int)$nw;
254 254
         } else {
255
-            $nw = '' . ((int) $nw + 1);
255
+            $nw = '' . ((int)$nw + 1);
256 256
         }
257 257
 
258 258
         while (strlen($nw) < 7) {
259 259
             $nw = '0' . $nw;
260 260
         }
261 261
 
262
-        $nk = $ew - (int) $ew;
262
+        $nk = $ew - (int)$ew;
263 263
         if ($nk < 0.5) {
264
-            $ew = '0' . (int) $ew;
264
+            $ew = '0' . (int)$ew;
265 265
         } else {
266 266
             $ew = '0' . intval($ew + 1);
267 267
         }
@@ -316,8 +316,8 @@  discard block
 block discarded – undo
316 316
                 0,
317 317
             ];
318 318
         }
319
-        $lw = (float) $lw;
320
-        $bw = (float) $bw;
319
+        $lw = (float)$lw;
320
+        $bw = (float)$bw;
321 321
 
322 322
         // Quellsystem WGS 84 Datum
323 323
         // Große Halbachse a und Abplattung fq
@@ -395,8 +395,8 @@  discard block
 block discarded – undo
395 395
                 0,
396 396
             ];
397 397
         }
398
-        $lp = (float) $lp;
399
-        $bp = (float) $bp;
398
+        $lp = (float)$lp;
399
+        $bp = (float)$bp;
400 400
 
401 401
         // Potsdam Datum
402 402
         // Große Halbachse a und Abplattung f
@@ -454,18 +454,18 @@  discard block
 block discarded – undo
454 454
         $rw = ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 +
455 455
             $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120 + $kz * 1e6 + 500000);
456 456
 
457
-        $nk = $hw - (int) $hw;
457
+        $nk = $hw - (int)$hw;
458 458
         if ($nk < 0.5) {
459
-            $hw = (int) $hw;
459
+            $hw = (int)$hw;
460 460
         } else {
461
-            $hw = ((int) $hw) + 1;
461
+            $hw = ((int)$hw) + 1;
462 462
         }
463 463
 
464
-        $nk = $rw - (int) $rw;
464
+        $nk = $rw - (int)$rw;
465 465
         if ($nk < 0.5) {
466
-            $rw = (int) $rw;
466
+            $rw = (int)$rw;
467 467
         } else {
468
-            $rw = (int) ($rw + 1);
468
+            $rw = (int)($rw + 1);
469 469
         }
470 470
 
471 471
         return [
Please login to merge, or discard this patch.
htdocs/lib2/logic/attribute.class.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -151,18 +151,18 @@
 block discarded – undo
151 151
     public static function getConflictingAttribIds($attribId)
152 152
     {
153 153
         static $conflicts = [
154
-            [1, 38],    // only at night - 24/7
155
-            [1, 40],    // only at night - only by day
156
-            [24, 25],   // near the parking area - long walk
157
-            [24, 27],   // near the parking area - hilly area
158
-            [24, 29],   // near the parking area - swimming required
159
-            [24, 50],   // near the parking area - cave equipment
160
-            [24, 51],   // near the parking area - diving equipment
161
-            [24, 52],   // near the parking area - watercraft
162
-            [38, 39],   // 24/7 - only at specified times
163
-            [38, 40],   // 24/7 - only by day
164
-            [42, 43],   // all seasons - breeding season
165
-            [42, 60],    // all seassons - only during specified seasons
154
+            [1, 38], // only at night - 24/7
155
+            [1, 40], // only at night - only by day
156
+            [24, 25], // near the parking area - long walk
157
+            [24, 27], // near the parking area - hilly area
158
+            [24, 29], // near the parking area - swimming required
159
+            [24, 50], // near the parking area - cave equipment
160
+            [24, 51], // near the parking area - diving equipment
161
+            [24, 52], // near the parking area - watercraft
162
+            [38, 39], // 24/7 - only at specified times
163
+            [38, 40], // 24/7 - only by day
164
+            [42, 43], // all seasons - breeding season
165
+            [42, 60], // all seassons - only during specified seasons
166 166
         ];
167 167
 
168 168
         static $conflictsByAttr = [];
Please login to merge, or discard this patch.
htdocs/lib2/logic/picture.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -587,9 +587,9 @@
 block discarded – undo
587 587
                 return false;
588 588
             }
589 589
             // restore picture file
590
-                $this->setUrl($original_url);     // set the url, so that we can
590
+                $this->setUrl($original_url); // set the url, so that we can
591 591
                 $filename = $this->getFilename(); // .. retrieve the file path+name
592
-                $this->setFilenames($filename);   // now set url(s) from the new uuid
592
+                $this->setFilenames($filename); // now set url(s) from the new uuid
593 593
                 try {
594 594
                     rename($this->deletedFilename($filename), $this->getFilename());
595 595
                 } catch (Exception $e) {
Please login to merge, or discard this patch.
htdocs/lib2/ss_zip.class.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
         }
142 142
 
143 143
         $fnl = strlen($filename);
144
-        $fh = "\x14\x00";    // ver needed to extract
145
-        $fh .= "\x00\x00";    // gen purpose bit flag
146
-        $fh .= "\x08\x00";    // compression method
144
+        $fh = "\x14\x00"; // ver needed to extract
145
+        $fh .= "\x00\x00"; // gen purpose bit flag
146
+        $fh .= "\x08\x00"; // compression method
147 147
         $fh .= "\x00\x00\x00\x00"; // last mod time and date
148 148
         $fh .=
149 149
             pack(
@@ -170,16 +170,16 @@  discard block
 block discarded – undo
170 170
                 'va*v3V2',
171 171
                 0,
172 172
                 $fh,
173
-                0,        // file comment length
174
-                0,        // disk number start
175
-                0,        // internal file attributes
176
-                $attr,    // external file attributes - 'archive/directory' bit set
173
+                0, // file comment length
174
+                0, // disk number start
175
+                0, // internal file attributes
176
+                $attr, // external file attributes - 'archive/directory' bit set
177 177
                 $this->offset
178 178
             ) . $filename;
179 179
 
180 180
         $this->offset += 42 + $fnl + $gzsize;
181 181
         $this->cdir[] = $cdir;
182
-        $this->cnt ++;
182
+        $this->cnt++;
183 183
         $this->idx = $this->cnt - 1;
184 184
     }
185 185
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                 $cdsl, // size of central dir
228 228
                 $zdsl, // offset to start of central dir
229 229
                 0
230
-            );              // .zip file comment length
230
+            ); // .zip file comment length
231 231
         return $this->zipfile;
232 232
     }
233 233
 
Please login to merge, or discard this patch.
local/ocxml11client/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
428 428
                         } else {
429 429
                             if ($xmlReader->nodeType == XMLReader::END_ELEMENT) {
430 430
                                 $sSubElement = '';
431
-                                $nRecursionLevel --;
431
+                                $nRecursionLevel--;
432 432
                             }
433 433
                         }
434 434
                     }
Please login to merge, or discard this patch.
htdocs/lib2/logic/countriesList.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
htdocs/src/Oc/GeoCache/Persistence/GeoCache/GeoCacheRepository.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
local/devel/Repositories/LanguagesRepository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.