Completed
Push — development ( 21d739...41956d )
by Thomas
56s queued 12s
created
htdocs_symfony/src/Repository/UserRepository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $databaseArray
191 191
         );
192 192
 
193
-        $entity->userId = (int) $this->connection->lastInsertId();
193
+        $entity->userId = (int)$this->connection->lastInsertId();
194 194
 
195 195
         return $entity;
196 196
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             ['user_id' => $entity->userId]
220 220
         );
221 221
 
222
-        $entity->userId = (int) $this->connection->lastInsertId();
222
+        $entity->userId = (int)$this->connection->lastInsertId();
223 223
 
224 224
         return $entity;
225 225
     }
@@ -319,17 +319,17 @@  discard block
 block discarded – undo
319 319
     public function getEntityFromDatabaseArray(array $data)
320 320
     : UserEntity {
321 321
         $entity = new UserEntity();
322
-        $entity->userId = (int) $data['user_id'];
323
-        $entity->dateCreated = (string) $data['date_created'];
324
-        $entity->lastModified = (string) $data['last_modified'];
325
-        $entity->lastLogin = (string) $data['last_login'];
322
+        $entity->userId = (int)$data['user_id'];
323
+        $entity->dateCreated = (string)$data['date_created'];
324
+        $entity->lastModified = (string)$data['last_modified'];
325
+        $entity->lastLogin = (string)$data['last_login'];
326 326
         $entity->username = $data['username'];
327 327
         $entity->password = $data['password'];
328 328
         $entity->email = $data['email'];
329
-        $entity->emailProblems = (bool) $data['email_problems'];
330
-        $entity->latitude = (double) $data['latitude'];
331
-        $entity->longitude = (double) $data['longitude'];
332
-        $entity->isActive = (bool) $data['is_active_flag'];
329
+        $entity->emailProblems = (bool)$data['email_problems'];
330
+        $entity->latitude = (double)$data['latitude'];
331
+        $entity->longitude = (double)$data['longitude'];
332
+        $entity->isActive = (bool)$data['is_active_flag'];
333 333
         $entity->firstname = $data['first_name'];
334 334
         $entity->lastname = $data['last_name'];
335 335
         $entity->country = $data['country'];
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CoordinatesRepository.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
                 0,
198 198
             ];
199 199
         }
200
-        $lw = (float) $this->nLon;
201
-        $bw = (float) $this->nLat;
200
+        $lw = (float)$this->nLon;
201
+        $bw = (float)$this->nLat;
202 202
 
203 203
         //WGS84 Datum
204 204
         //Große Halbachse a und Abplattung f
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
 
218 218
         //Koeffizienten zur Berechnung der Meridianbogenlänge
219 219
         $e0 = $c * (pi() / 180) * (1 - 3 * $ex2 / 4 + 45 * $ex4 / 64 - 175 * $ex6 / 256 + 11025 * $ex8 / 16384);
220
-        $e2 = $c * (- 3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
220
+        $e2 = $c * (-3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
221 221
         $e4 = $c * (15 * $ex4 / 256 - 105 * $ex6 / 1024 + 2205 * $ex8 / 16384);
222
-        $e6 = $c * (- 35 * $ex6 / 3072 + 315 * $ex8 / 12288);
222
+        $e6 = $c * (-35 * $ex6 / 3072 + 315 * $ex8 / 12288);
223 223
 
224 224
         //Längenzone lz und Breitenzone (Band) bz
225 225
         $lzn = intval(($lw + 180) / 6) + 1;
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         if ($lzn < 10) {
246 246
             $lz = '0' . $lzn;
247 247
         }
248
-        $bd = (int) (1 + ($bw + 80) / 8);
248
+        $bd = (int)(1 + ($bw + 80) / 8);
249 249
         $bz = substr($b_sel, $bd - 1, 1);
250 250
 
251 251
         //Geographische Breite in Radianten br
@@ -290,20 +290,20 @@  discard block
 block discarded – undo
290 290
         $ew = 0.9996 * ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 +
291 291
                         $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120) + 500000;
292 292
 
293
-        $nk = $nw - (int) $nw;
293
+        $nk = $nw - (int)$nw;
294 294
         if ($nk < 0.5) {
295
-            $nw = '' . (int) $nw;
295
+            $nw = '' . (int)$nw;
296 296
         } else {
297
-            $nw = '' . ((int) $nw + 1);
297
+            $nw = '' . ((int)$nw + 1);
298 298
         }
299 299
 
300 300
         while (strlen($nw) < 7) {
301 301
             $nw = '0' . $nw;
302 302
         }
303 303
 
304
-        $nk = $ew - (int) $ew;
304
+        $nk = $ew - (int)$ew;
305 305
         if ($nk < 0.5) {
306
-            $ew = '0' . (int) $ew;
306
+            $ew = '0' . (int)$ew;
307 307
         } else {
308 308
             $ew = '0' . intval($ew + 1);
309 309
         }
@@ -311,8 +311,8 @@  discard block
 block discarded – undo
311 311
         return [
312 312
             'zone' => $lz,
313 313
             'letter' => $bz,
314
-            'north' => 'N' . floor((float) $nw),
315
-            'east' => 'E' . floor((float) $ew),
314
+            'north' => 'N' . floor((float)$nw),
315
+            'east' => 'E' . floor((float)$ew),
316 316
         ];
317 317
     }
318 318
 
@@ -364,8 +364,8 @@  discard block
 block discarded – undo
364 364
                 0,
365 365
             ];
366 366
         }
367
-        $lw = (float) $lw;
368
-        $bw = (float) $bw;
367
+        $lw = (float)$lw;
368
+        $bw = (float)$bw;
369 369
 
370 370
         // Quellsystem WGS 84 Datum
371 371
         // Große Halbachse a und Abplattung fq
@@ -449,8 +449,8 @@  discard block
 block discarded – undo
449 449
                 0,
450 450
             ];
451 451
         }
452
-        $lp = (float) $lp;
453
-        $bp = (float) $bp;
452
+        $lp = (float)$lp;
453
+        $bp = (float)$bp;
454 454
 
455 455
         // Potsdam Datum
456 456
         // Große Halbachse a und Abplattung f
@@ -468,9 +468,9 @@  discard block
 block discarded – undo
468 468
 
469 469
         // Koeffizienten zur Berechnung der Meridianbogenlänge
470 470
         $e0 = $c * (pi() / 180) * (1 - 3 * $ex2 / 4 + 45 * $ex4 / 64 - 175 * $ex6 / 256 + 11025 * $ex8 / 16384);
471
-        $e2 = $c * (- 3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
471
+        $e2 = $c * (-3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
472 472
         $e4 = $c * (15 * $ex4 / 256 - 105 * $ex6 / 1024 + 2205 * $ex8 / 16384);
473
-        $e6 = $c * (- 35 * $ex6 / 3072 + 315 * $ex8 / 12288);
473
+        $e6 = $c * (-35 * $ex6 / 3072 + 315 * $ex8 / 12288);
474 474
 
475 475
         // Breite in Radianten
476 476
         $br = $bp * pi() / 180;
@@ -508,18 +508,18 @@  discard block
 block discarded – undo
508 508
         $rw = ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 +
509 509
                $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120 + $kz * 1e6 + 500000);
510 510
 
511
-        $nk = $hw - (int) $hw;
511
+        $nk = $hw - (int)$hw;
512 512
         if ($nk < 0.5) {
513
-            $hw = (int) $hw;
513
+            $hw = (int)$hw;
514 514
         } else {
515
-            $hw = ((int) $hw) + 1;
515
+            $hw = ((int)$hw) + 1;
516 516
         }
517 517
 
518
-        $nk = $rw - (int) $rw;
518
+        $nk = $rw - (int)$rw;
519 519
         if ($nk < 0.5) {
520
-            $rw = (int) $rw;
520
+            $rw = (int)$rw;
521 521
         } else {
522
-            $rw = (int) ($rw + 1);
522
+            $rw = (int)($rw + 1);
523 523
         }
524 524
 
525 525
         return [
@@ -545,8 +545,8 @@  discard block
 block discarded – undo
545 545
         $lat_base = 52.15517440;
546 546
         $lon_base = 5.38720621;
547 547
 
548
-        for ($i = 0; $i <= 6; $i ++) {
549
-            for ($j = 0; $j <= 5; $j ++) {
548
+        for ($i = 0; $i <= 6; $i++) {
549
+            for ($j = 0; $j <= 5; $j++) {
550 550
                 $rpq[$i][$j] = 0;
551 551
                 $spq[$i][$j] = 0;
552 552
             }
@@ -581,8 +581,8 @@  discard block
 block discarded – undo
581 581
         $xOrigin = 0;
582 582
         $yOrigin = 0;
583 583
 
584
-        for ($q = 0; $q <= 5; $q ++) {
585
-            for ($p = 0; $p <= 6; $p ++) {
584
+        for ($q = 0; $q <= 5; $q++) {
585
+            for ($p = 0; $p <= 6; $p++) {
586 586
                 $xOrigin = $xOrigin + ($rpq[$p][$q] * ((pow($dlat, $p)) * (pow($dlon, $q))));
587 587
                 $yOrigin = $yOrigin + ($spq[$p][$q] * ((pow($dlat, $p)) * (pow($dlon, $q))));
588 588
             }
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
 
754 754
         $arr = preg_split('/\s+/', $searchtext);
755 755
 
756
-        $this->setLatLon((float) $arr[0], (float) $arr[1]);
756
+        $this->setLatLon((float)$arr[0], (float)$arr[1]);
757 757
 
758 758
         return $this->getAllCoordinatesFormatsAsArray();
759 759
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/MapsRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             foreach ($mapWP as $WP) {
69 69
                 $centerPoint['lat'] += $WP->latitude;
70 70
                 $centerPoint['lon'] += $WP->longitude;
71
-                $centerPoint['count'] ++;
71
+                $centerPoint['count']++;
72 72
             }
73 73
             if ($centerPoint['count'] > 0) {
74 74
                 $mapCenterViewLat = $centerPoint['lat'] / $centerPoint['count'];
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/OCOnly81Repository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     public function ocOnly81_get_matrixData()
36 36
     : array
37 37
     {
38
-        for ($i = 0; $i <= 8; $i ++) {
39
-            for ($j = 0; $j <= 8; $j ++) {
38
+        for ($i = 0; $i <= 8; $i++) {
39
+            for ($j = 0; $j <= 8; $j++) {
40 40
                 $matrix[$i][$j] = 0;
41 41
                 $dsum[$i] = 0;
42 42
                 $tsum[$i] = 0;
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
         $data = $qb->executeQuery()->fetchAllAssociative();
54 54
 
55 55
         foreach ($data as $item) {
56
-            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2] ++;
56
+            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2]++;
57 57
         }
58 58
 
59
-        for ($i = 0; $i <= 8; $i ++) {
59
+        for ($i = 0; $i <= 8; $i++) {
60 60
             $dsum[$i] = $dsum[$i] + array_sum($matrix[$i]);
61 61
             $tsum[$i] = $tsum[$i] + array_sum(array_column($matrix, $i));
62 62
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     'count' => 1
98 98
                 ];
99 99
             } else {
100
-                $result[$item['user_id']]['count'] ++;
100
+                $result[$item['user_id']]['count']++;
101 101
             }
102 102
         }
103 103
 
Please login to merge, or discard this patch.