Completed
Push — next ( c582f9...4beac3 )
by Thomas
01:09 queued 26s
created
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.
htdocs/lib2/OcSmarty.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public $main_template = 'sys_main';
21 21
     public $bench = null;
22 22
     public $compile_id = null;
23
-    public $cache_id = null;    // This is a smarty caching ID, not a caches.cache_id.
23
+    public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id.
24 24
     public $title = '';
25 25
     public $menuitem = null;
26 26
     public $nowpsearch = false;
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
      * @throws SmartyException
418 418
      */
419 419
     public function is_cached(mixed $dummy1 = null, mixed $dummy2 = null, mixed $dummy3 = null)
420
-    : bool|string {
420
+    : bool | string {
421 421
         global $login;
422 422
 
423 423
         // if the user is an admin, dont cache the content
Please login to merge, or discard this patch.
htdocs_symfony/public/index.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {
21 21
     Request::setTrustedProxies(
22 22
         explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR
23
-                                       ^ Request::HEADER_X_FORWARDED_PROTO
24
-                                       ^ Request::HEADER_X_FORWARDED_PORT
23
+                                        ^ Request::HEADER_X_FORWARDED_PROTO
24
+                                        ^ Request::HEADER_X_FORWARDED_PORT
25 25
     );
26 26
 }
27 27
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     Request::setTrustedHosts([$trustedHosts]);
30 30
 }
31 31
 
32
-$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
32
+$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
33 33
 $request = Request::createFromGlobals();
34 34
 $response = $kernel->handle($request);
35 35
 $response->send();
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/OCOnly81Controller.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
     private function ocOnly81_get_matrixData()
64 64
     : array
65 65
     {
66
-        for ($i = 0; $i <= 8; $i ++) {
67
-            for ($j = 0; $j <= 8; $j ++) {
66
+        for ($i = 0; $i <= 8; $i++) {
67
+            for ($j = 0; $j <= 8; $j++) {
68 68
                 $matrix[$i][$j] = 0;
69 69
                 $dsum[$i] = 0;
70 70
                 $tsum[$i] = 0;
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
         $data = $qb->execute()->fetchAllAssociative();
82 82
 
83 83
         foreach ($data as $item) {
84
-            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2] ++;
84
+            $matrix[$item['difficulty'] - 2][$item['terrain'] - 2]++;
85 85
         }
86 86
 
87
-        for ($i = 0; $i <= 8; $i ++) {
87
+        for ($i = 0; $i <= 8; $i++) {
88 88
             $dsum[$i] = $dsum[$i] + array_sum($matrix[$i]);
89 89
             $tsum[$i] = $tsum[$i] + array_sum(array_column($matrix, $i));
90 90
         }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                     'count' => 1
127 127
                 ];
128 128
             } else {
129
-                $result[$item['user_id']]['count'] ++;
129
+                $result[$item['user_id']]['count']++;
130 130
             }
131 131
         }
132 132
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/SupportController.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
 
188 188
         return $this->render(
189 189
             'backend/support/searchedCaches.html.twig', [
190
-                                                          'supportCachesForm' => $formSearch->createView(),
191
-                                                          'foundCaches' => $fetchedCaches
192
-                                                      ]
190
+                                                            'supportCachesForm' => $formSearch->createView(),
191
+                                                            'foundCaches' => $fetchedCaches
192
+                                                        ]
193 193
         );
194 194
     }
195 195
 
@@ -211,9 +211,9 @@  discard block
 block discarded – undo
211 211
 
212 212
         return $this->render(
213 213
             'backend/support/reportedCaches.html.twig', [
214
-                                                          'supportCachesForm' => $formSearch->createView(),
215
-                                                          'reportedCaches_by_id' => $fetchedReports
216
-                                                      ]
214
+                                                            'supportCachesForm' => $formSearch->createView(),
215
+                                                            'reportedCaches_by_id' => $fetchedReports
216
+                                                        ]
217 217
         );
218 218
     }
219 219
 
@@ -234,10 +234,10 @@  discard block
 block discarded – undo
234 234
 
235 235
         return $this->render(
236 236
             'backend/support/bonusCaches.html.twig', [
237
-                                                       'supportCachesForm' => $formSearch->createView(),
238
-                                                       'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(),
239
-                                                       'bonusCaches_by_id' => $fetchedBonuscaches
240
-                                                   ]
237
+                                                        'supportCachesForm' => $formSearch->createView(),
238
+                                                        'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(),
239
+                                                        'bonusCaches_by_id' => $fetchedBonuscaches
240
+                                                    ]
241 241
         );
242 242
     }
243 243
 
@@ -260,10 +260,10 @@  discard block
 block discarded – undo
260 260
 
261 261
         return $this->render(
262 262
             'backend/support/bonusCachesAssignment.html.twig', [
263
-                                                                 'supportCachesForm' => $formSearch->createView(),
264
-                                                                 'bonus_Cache' => $wpID,
265
-                                                                 'caches_by_owner' => $fetchedOwnerCaches
266
-                                                             ]
263
+                                                                    'supportCachesForm' => $formSearch->createView(),
264
+                                                                    'bonus_Cache' => $wpID,
265
+                                                                    'caches_by_owner' => $fetchedOwnerCaches
266
+                                                                ]
267 267
         );
268 268
     }
269 269
 
@@ -290,10 +290,10 @@  discard block
 block discarded – undo
290 290
 
291 291
         return $this->render(
292 292
             'backend/support/bonusCachesAssignment.html.twig', [
293
-                                                                 'supportCachesForm' => $formSearch->createView(),
294
-                                                                 'bonus_Cache' => $toBonusCache,
295
-                                                                 'caches_by_owner' => $fetchedOwnerCaches
296
-                                                             ]
293
+                                                                    'supportCachesForm' => $formSearch->createView(),
294
+                                                                    'bonus_Cache' => $toBonusCache,
295
+                                                                    'caches_by_owner' => $fetchedOwnerCaches
296
+                                                                ]
297 297
         );
298 298
     }
299 299
 
@@ -402,10 +402,10 @@  discard block
 block discarded – undo
402 402
 
403 403
         return $this->render(
404 404
             'backend/support/databaseQueries.html.twig', [
405
-                                                           'supportCachesForm' => $formSearch->createView(),
406
-                                                           'SQLFlexForm' => $formSQLFlex->createView(),
407
-                                                           'suppSQLqueryFlex' => $fetchedInformation
408
-                                                       ]
405
+                                                            'supportCachesForm' => $formSearch->createView(),
406
+                                                            'SQLFlexForm' => $formSQLFlex->createView(),
407
+                                                            'suppSQLqueryFlex' => $fetchedInformation
408
+                                                        ]
409 409
         );
410 410
     }
411 411
 
@@ -541,16 +541,16 @@  discard block
 block discarded – undo
541 541
 
542 542
         return $this->render(
543 543
             'backend/support/occ.html.twig', [
544
-                                               'supportCachesForm' => $formSearch->createView(),
545
-                                               'supportCommentFormUser' => $formCommentUser->createView(),
546
-                                               'supportCommentFormCache' => $formCommentCache->createView(),
547
-                                               'occ_cache_data' => $fetchedCacheData,
548
-                                               'occ_cache_comments' => $fetchedCacheComments,
549
-                                               'occ_cache_infos' => $fetchedCacheInfos,
550
-                                               'occ_user_data' => $fetchedUserData,
551
-                                               'occ_user_comments' => $fetchedUserComments,
552
-                                               'occ_user_relations' => $fetchedUserRelations
553
-                                           ]
544
+                                                'supportCachesForm' => $formSearch->createView(),
545
+                                                'supportCommentFormUser' => $formCommentUser->createView(),
546
+                                                'supportCommentFormCache' => $formCommentCache->createView(),
547
+                                                'occ_cache_data' => $fetchedCacheData,
548
+                                                'occ_cache_comments' => $fetchedCacheComments,
549
+                                                'occ_cache_infos' => $fetchedCacheInfos,
550
+                                                'occ_user_data' => $fetchedUserData,
551
+                                                'occ_user_comments' => $fetchedUserComments,
552
+                                                'occ_user_relations' => $fetchedUserRelations
553
+                                            ]
554 554
         );
555 555
     }
556 556
 
@@ -684,10 +684,10 @@  discard block
 block discarded – undo
684 684
 
685 685
         return $this->render(
686 686
             'backend/support/userDetails.html.twig', [
687
-                                                       'supportCachesForm' => $formSearch->createView(),
688
-                                                       'supportUserAccountActions' => $formActions->createView(),
689
-                                                       'user_account_details' => $fetchedUserDetails
690
-                                                   ]
687
+                                                        'supportCachesForm' => $formSearch->createView(),
688
+                                                        'supportUserAccountActions' => $formActions->createView(),
689
+                                                        'user_account_details' => $fetchedUserDetails
690
+                                                    ]
691 691
         );
692 692
     }
693 693
 
@@ -786,9 +786,9 @@  discard block
 block discarded – undo
786 786
 
787 787
         return $this->render(
788 788
             'backend/support/databaseQueries.html.twig', [
789
-                                                           'supportCachesForm' => $formSearch->createView(),
790
-                                                           'suppSQLquery1' => $qb->execute()->fetchAllAssociative()
791
-                                                       ]
789
+                                                            'supportCachesForm' => $formSearch->createView(),
790
+                                                            'suppSQLquery1' => $qb->execute()->fetchAllAssociative()
791
+                                                        ]
792 792
         );
793 793
     }
794 794
 
@@ -815,9 +815,9 @@  discard block
 block discarded – undo
815 815
 
816 816
         return $this->render(
817 817
             'backend/support/databaseQueries.html.twig', [
818
-                                                           'supportCachesForm' => $formSearch->createView(),
819
-                                                           'suppSQLquery2' => $qb->execute()->fetchAllAssociative()
820
-                                                       ]
818
+                                                            'supportCachesForm' => $formSearch->createView(),
819
+                                                            'suppSQLquery2' => $qb->execute()->fetchAllAssociative()
820
+                                                        ]
821 821
         );
822 822
     }
823 823
 
@@ -851,9 +851,9 @@  discard block
 block discarded – undo
851 851
 
852 852
         return $this->render(
853 853
             'backend/support/databaseQueries.html.twig', [
854
-                                                           'supportCachesForm' => $formSearch->createView(),
855
-                                                           'suppSQLquery4' => $qb->execute()->fetchAllAssociative()
856
-                                                       ]
854
+                                                            'supportCachesForm' => $formSearch->createView(),
855
+                                                            'suppSQLquery4' => $qb->execute()->fetchAllAssociative()
856
+                                                        ]
857 857
         );
858 858
     }
859 859
 
@@ -872,9 +872,9 @@  discard block
 block discarded – undo
872 872
 
873 873
         return $this->render(
874 874
             'backend/support/databaseQueries.html.twig', [
875
-                                                           'supportCachesForm' => $formSearch->createView(),
876
-                                                           'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll()
877
-                                                       ]
875
+                                                            'supportCachesForm' => $formSearch->createView(),
876
+                                                            'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll()
877
+                                                        ]
878 878
         );
879 879
     }
880 880
 
@@ -919,9 +919,9 @@  discard block
 block discarded – undo
919 919
 
920 920
         return $this->render(
921 921
             'backend/support/databaseQueries.html.twig', [
922
-                                                           'supportCachesForm' => $formSearch->createView(),
923
-                                                           'suppSQLquery6' => $qb_caches_list
924
-                                                       ]
922
+                                                            'supportCachesForm' => $formSearch->createView(),
923
+                                                            'suppSQLquery6' => $qb_caches_list
924
+                                                        ]
925 925
         );
926 926
     }
927 927
 
@@ -1037,15 +1037,15 @@  discard block
 block discarded – undo
1037 1037
 
1038 1038
         return $this->render(
1039 1039
             'backend/support/occ_gpx_import.html.twig', [
1040
-                                                          'supportCachesForm' => $formSearch->createView(),
1041
-                                                          'supportUploadGPXForm' => $formUpload->createView(),
1042
-                                                          'amountProcessedCaches' => $amountProcessedCaches,
1043
-                                                          'amountAssignedCaches' => $amountAssignedCaches,
1044
-                                                          'amountUpdatedCaches' => $amountUpdatedCaches,
1045
-                                                          'listOfAmbiguousCaches' => $listOfAmbiguousCaches,
1046
-                                                          'fetchedListingInfos' => $fetchedListingInfos,
1047
-                                                          'differencesDetected' => $differencesDetected
1048
-                                                      ]
1040
+                                                            'supportCachesForm' => $formSearch->createView(),
1041
+                                                            'supportUploadGPXForm' => $formUpload->createView(),
1042
+                                                            'amountProcessedCaches' => $amountProcessedCaches,
1043
+                                                            'amountAssignedCaches' => $amountAssignedCaches,
1044
+                                                            'amountUpdatedCaches' => $amountUpdatedCaches,
1045
+                                                            'listOfAmbiguousCaches' => $listOfAmbiguousCaches,
1046
+                                                            'fetchedListingInfos' => $fetchedListingInfos,
1047
+                                                            'differencesDetected' => $differencesDetected
1048
+                                                        ]
1049 1049
         );
1050 1050
     }
1051 1051
 
@@ -1209,11 +1209,11 @@  discard block
 block discarded – undo
1209 1209
                     ] as $checkItem) {
1210 1210
                         if ($wpt[$checkItem] != $fetchedExistingSupportListingInfoArray[$checkItem]) {
1211 1211
                             $newComment .= $checkItem
1212
-                                           . ' changed from '
1213
-                                           . $fetchedExistingSupportListingInfoArray[$checkItem]
1214
-                                           . ' to '
1215
-                                           . $wpt[$checkItem]
1216
-                                           . PHP_EOL;
1212
+                                            . ' changed from '
1213
+                                            . $fetchedExistingSupportListingInfoArray[$checkItem]
1214
+                                            . ' to '
1215
+                                            . $wpt[$checkItem]
1216
+                                            . PHP_EOL;
1217 1217
                         }
1218 1218
                     }
1219 1219
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/RolesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
             $inputData = $form->getData();
152 152
             $userId = $inputData['content_user_searchfield'];
153 153
 
154
-            $fetchedUser = $this->userRepository->fetchOneById((int) $userId);
154
+            $fetchedUser = $this->userRepository->fetchOneById((int)$userId);
155 155
         }
156 156
 
157 157
         return $this->render(
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/UserRolesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             $databaseArray
157 157
         );
158 158
 
159
-        $entity->id = (int) $this->connection->lastInsertId();
159
+        $entity->id = (int)$this->connection->lastInsertId();
160 160
 
161 161
         return $entity;
162 162
     }
@@ -272,9 +272,9 @@  discard block
 block discarded – undo
272 272
     public function getEntityFromDatabaseArray(array $data)
273 273
     : UserRolesEntity {
274 274
         $entity = new UserRolesEntity();
275
-        $entity->id = (int) $data['id'];
276
-        $entity->userId = (string) $data['user_id'];
277
-        $entity->roleId = (string) $data['role_id'];
275
+        $entity->id = (int)$data['id'];
276
+        $entity->userId = (string)$data['user_id'];
277
+        $entity->roleId = (string)$data['role_id'];
278 278
 
279 279
         return $entity;
280 280
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheStatusModifiedRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             $databaseArray
168 168
         );
169 169
 
170
-        $entity->cacheId = (int) $this->connection->lastInsertId();
170
+        $entity->cacheId = (int)$this->connection->lastInsertId();
171 171
 
172 172
         return $entity;
173 173
     }
@@ -246,11 +246,11 @@  discard block
 block discarded – undo
246 246
     public function getEntityFromDatabaseArray(array $data)
247 247
     : GeoCacheStatusModifiedEntity {
248 248
         $entity = new GeoCacheStatusModifiedEntity();
249
-        $entity->cacheId = (int) $data['cache_id'];
249
+        $entity->cacheId = (int)$data['cache_id'];
250 250
         $entity->dateModified = new DateTime($data['date_modified']);
251
-        $entity->oldState = (int) $data['old_state'];
252
-        $entity->newState = (int) $data['new_state'];
253
-        $entity->userId = (int) $data['user_id'];
251
+        $entity->oldState = (int)$data['old_state'];
252
+        $entity->newState = (int)$data['new_state'];
253
+        $entity->userId = (int)$data['user_id'];
254 254
         $entity->user = $this->userRepository->fetchOneById($entity->userId);
255 255
         $entity->cacheStatusOld = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->oldState]);
256 256
         $entity->cacheStatusNew = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->newState]);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheStatusRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $databaseArray
147 147
         );
148 148
 
149
-        $entity->id = (int) $this->connection->lastInsertId();
149
+        $entity->id = (int)$this->connection->lastInsertId();
150 150
 
151 151
         return $entity;
152 152
     }
@@ -226,14 +226,14 @@  discard block
 block discarded – undo
226 226
     public function getEntityFromDatabaseArray(array $data)
227 227
     : GeoCacheStatusEntity {
228 228
         $entity = new GeoCacheStatusEntity();
229
-        $entity->id = (int) $data['id'];
230
-        $entity->name = (string) $data['name'];
231
-        $entity->transId = (int) $data['trans_id'];
232
-        $entity->de = (string) $data['de'];
233
-        $entity->en = (string) $data['en'];
234
-        $entity->allowUserView = (int) $data['allow_user_view'];
235
-        $entity->allowOwnerEditStatus = (int) $data['allow_owner_edit_status'];
236
-        $entity->allowUserLog = (int) $data['allow_user_log'];
229
+        $entity->id = (int)$data['id'];
230
+        $entity->name = (string)$data['name'];
231
+        $entity->transId = (int)$data['trans_id'];
232
+        $entity->de = (string)$data['de'];
233
+        $entity->en = (string)$data['en'];
234
+        $entity->allowUserView = (int)$data['allow_user_view'];
235
+        $entity->allowOwnerEditStatus = (int)$data['allow_owner_edit_status'];
236
+        $entity->allowUserLog = (int)$data['allow_user_log'];
237 237
 
238 238
         return $entity;
239 239
     }
Please login to merge, or discard this patch.