Completed
Pull Request — development (#897)
by
unknown
50s
created
htdocs/adminuser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -166,22 +166,22 @@
 block discarded – undo
166 166
 
167 167
     $tpl->assign('showdetails', true);
168 168
 
169
-    $r['hidden'] = (int) $connection->fetchOne(
169
+    $r['hidden'] = (int)$connection->fetchOne(
170 170
         'SELECT COUNT(*) FROM `caches` WHERE `user_id`=:userId', ['userId' => $r['user_id']]
171 171
     );
172
-    $r['hidden_active'] = (int) $connection->fetchOne(
172
+    $r['hidden_active'] = (int)$connection->fetchOne(
173 173
         'SELECT COUNT(*) FROM `caches` WHERE `user_id`= :userId AND `status`=1',
174 174
         ['userId' => $r['user_id']]
175 175
     );
176
-    $r['logentries'] = (int) $connection->fetchOne(
176
+    $r['logentries'] = (int)$connection->fetchOne(
177 177
         'SELECT COUNT(*) FROM `cache_logs` WHERE `user_id`= :userId',
178 178
         ['userId' => $r['user_id']]
179 179
     );
180
-    $r['deleted_logentries'] = (int) $connection->fetchOne(
180
+    $r['deleted_logentries'] = (int)$connection->fetchOne(
181 181
         'SELECT COUNT(*) FROM `cache_logs_archived` WHERE `user_id`= :userId',
182 182
         ['userId' => $r['user_id']]
183 183
     );
184
-    $r['reports'] = (int) $connection->fetchOne(
184
+    $r['reports'] = (int)$connection->fetchOne(
185 185
         'SELECT COUNT(*) FROM `cache_reports` WHERE `userid`= :userId',
186 186
         ['userId' => $r['user_id']]
187 187
     );
Please login to merge, or discard this patch.
htdocs/adminhistory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
28 28
         ['wp' => $_REQUEST['wp']]
29 29
     );
30 30
 } else {
31
-    $cacheId = isset($_REQUEST['cacheid']) ? (int) $_REQUEST['cacheid'] : -1;
31
+    $cacheId = isset($_REQUEST['cacheid']) ? (int)$_REQUEST['cacheid'] : -1;
32 32
 }
33 33
 
34 34
 $showHistory = false;
35 35
 $error = '';
36 36
 
37 37
 if ($cacheId >= 0 &&
38
-    $connection->fetchOne('SELECT COUNT(*) FROM `caches` WHERE `cache_id`=:id',['id' => $cacheId]) <> 1)
38
+    $connection->fetchOne('SELECT COUNT(*) FROM `caches` WHERE `cache_id`=:id', ['id' => $cacheId]) <> 1)
39 39
 {
40 40
     $error = $translate->t('Cache not found', '', '', 0);
41 41
 } elseif ($cacheId > 0) {
Please login to merge, or discard this patch.
htdocs/usertops.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 $tpl->name = 'usertops';
14 14
 $tpl->menuitem = MNU_CACHES_USERTOPS;
15 15
 
16
-$userId = (int) isset($_REQUEST['userid']) ? $_REQUEST['userid']: 0;
16
+$userId = (int)isset($_REQUEST['userid']) ? $_REQUEST['userid'] : 0;
17 17
 $ocOnly = isset($_REQUEST['oconly']) && $_REQUEST['oconly'];
18 18
 
19
-$sUsername = $connection->fetchOne('SELECT `username` FROM `user` WHERE `user_id` = :userId',['userId' => $userId]);
19
+$sUsername = $connection->fetchOne('SELECT `username` FROM `user` WHERE `user_id` = :userId', ['userId' => $userId]);
20 20
 if ($sUsername == null) {
21 21
     $tpl->error(ERROR_USER_NOT_EXISTS);
22 22
 }
Please login to merge, or discard this patch.
htdocs/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,16 +75,16 @@  discard block
 block discarded – undo
75 75
     // current cache and log-counters
76 76
     $tpl->assign(
77 77
         'count_hiddens',
78
-        number1000((int) $connection->fetchOne('SELECT COUNT(*) AS `hiddens` FROM `caches` WHERE `status` = 1'))
78
+        number1000((int)$connection->fetchOne('SELECT COUNT(*) AS `hiddens` FROM `caches` WHERE `status` = 1'))
79 79
     );
80 80
     $tpl->assign(
81 81
         'count_founds',
82
-        number1000((int) $connection->fetchOne('SELECT COUNT(*) AS `founds` FROM `cache_logs` WHERE `type` = 1'))
82
+        number1000((int)$connection->fetchOne('SELECT COUNT(*) AS `founds` FROM `cache_logs` WHERE `type` = 1'))
83 83
     );
84 84
     $tpl->assign(
85 85
         'count_users',
86 86
         number1000(
87
-            (int) $connection->fetchOne(
87
+            (int)$connection->fetchOne(
88 88
                 'SELECT COUNT(*) AS `users`
89 89
                  FROM (
90 90
                        SELECT DISTINCT `user_id`
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     // get total event count for all countries
103 103
     $tpl->assign(
104 104
         'total_events',
105
-        (int) $connection->fetchOne(
105
+        (int)$connection->fetchOne(
106 106
             'SELECT COUNT(*)
107 107
              FROM `caches`
108 108
              WHERE `type` = 6
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Admin/Gdpr/GdprHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                 WHERE cache_id = :cacheId;
228 228
 SQL
229 229
             , [
230
-                'cacheId' => (int) $cache['cache_id'],
230
+                'cacheId' => (int)$cache['cache_id'],
231 231
             ]);
232 232
 
233 233
             $this->connection->executeQuery(<<<'SQL'
@@ -239,19 +239,19 @@  discard block
 block discarded – undo
239 239
                 WHERE cache_id = :cacheId
240 240
 SQL
241 241
             , [
242
-                'cacheId' => (int) $cache['cache_id'],
242
+                'cacheId' => (int)$cache['cache_id'],
243 243
             ]);
244 244
 
245 245
             $this->connection->executeQuery('DELETE FROM cache_desc_modified WHERE cache_id = :cacheId', [
246
-                'cacheId' => (int) $cache['cache_id'],
246
+                'cacheId' => (int)$cache['cache_id'],
247 247
             ]);
248 248
 
249 249
             $this->connection->executeQuery('DELETE FROM cache_ignore WHERE cache_id = :cacheId', [
250
-                'cacheId' => (int) $cache['cache_id'],
250
+                'cacheId' => (int)$cache['cache_id'],
251 251
             ]);
252 252
 
253 253
             $this->connection->executeQuery('DELETE FROM caches_modified WHERE cache_id = :cacheId', [
254
-                'cacheId' => (int) $cache['cache_id'],
254
+                'cacheId' => (int)$cache['cache_id'],
255 255
             ]);
256 256
         }
257 257
     }
@@ -265,8 +265,8 @@  discard block
 block discarded – undo
265 265
             return [];
266 266
         }
267 267
 
268
-        $ids = array_map(static function (array $cache) use ($idField) {
269
-            return (int) $cache[$idField];
268
+        $ids = array_map(static function(array $cache) use ($idField) {
269
+            return (int)$cache[$idField];
270 270
         }, $data);
271 271
 
272 272
         $pictures = $this->connection->fetchAllAssociative('SELECT * FROM pictures WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [
@@ -286,8 +286,8 @@  discard block
 block discarded – undo
286 286
             return [];
287 287
         }
288 288
 
289
-        $ids = array_map(static function (array $cache) use ($idField) {
290
-            return (int) $cache[$idField];
289
+        $ids = array_map(static function(array $cache) use ($idField) {
290
+            return (int)$cache[$idField];
291 291
         }, $data);
292 292
 
293 293
         return $this->connection->fetchAllAssociative('SELECT * FROM pictures_modified WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [
Please login to merge, or discard this patch.
htdocs/lib2/OcSmarty.class.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 
593 593
         // ok ... redirect the get-data
594 594
         $target = ($opt['page']['https']['force_login'] ? 'https' : $opt['page']['protocol'])
595
-                  . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
595
+                    . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
596 596
         $this->redirect('login.php?target=' . urlencode($target));
597 597
     }
598 598
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
         $this->_dvar_math_regexp = '(?:[\+\*\/\%]|(?:-(?!>)))';
739 739
         $this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\>\[\]]';
740 740
         $this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp
741
-                                   . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?';
741
+                                    . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?';
742 742
         $this->_dvar_regexp = '\$' . $this->_dvar_guts_regexp;
743 743
 
744 744
         // matches config vars:
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
 
753 753
         // matches all valid variables (no quotes, no modifiers)
754 754
         $this->_avar_regexp = '(?:' . $this->_dvar_regexp . '|'
755
-                              . $this->_cvar_regexp . '|' . $this->_svar_regexp . ')';
755
+                                . $this->_cvar_regexp . '|' . $this->_svar_regexp . ')';
756 756
 
757 757
         // matches valid variable syntax:
758 758
         // $foo
@@ -776,10 +776,10 @@  discard block
 block discarded – undo
776 776
         // $foo->bar($foo->bar($blah,$foo,44,"foo",$foo[0].bar))
777 777
         $this->_obj_ext_regexp = '\->(?:\$?' . $this->_dvar_guts_regexp . ')';
778 778
         $this->_obj_restricted_param_regexp = '(?:'
779
-                                              . '(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')(?:' . $this->_obj_ext_regexp . '(?:\((?:(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')'
780
-                                              . '(?:\s*,\s*(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . '))*)?\))?)*)';
779
+                                                . '(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')(?:' . $this->_obj_ext_regexp . '(?:\((?:(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')'
780
+                                                . '(?:\s*,\s*(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . '))*)?\))?)*)';
781 781
         $this->_obj_single_param_regexp = '(?:\w+|' . $this->_obj_restricted_param_regexp . '(?:\s*,\s*(?:(?:\w+|'
782
-                                          . $this->_var_regexp . $this->_obj_restricted_param_regexp . ')))*)';
782
+                                            . $this->_var_regexp . $this->_obj_restricted_param_regexp . ')))*)';
783 783
         $this->_obj_params_regexp = '\((?:' . $this->_obj_single_param_regexp
784 784
                                     . '(?:\s*,\s*' . $this->_obj_single_param_regexp . ')*)?\)';
785 785
         $this->_obj_start_regexp = '(?:' . $this->_dvar_regexp . '(?:' . $this->_obj_ext_regexp . ')+)';
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         // |foo|bar
795 795
         // |foo:$foo->bar
796 796
         $this->_mod_regexp = '(?:\|@?\w+(?::(?:\w+|' . $this->_num_const_regexp . '|'
797
-                             . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)';
797
+                                . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)';
798 798
 
799 799
         // matches valid function name:
800 800
         // foo123
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
         // "text"|bar
816 816
         // $foo->bar
817 817
         $this->_param_regexp = '(?:\s*(?:' . $this->_obj_call_regexp . '|'
818
-                               . $this->_var_regexp . '|' . $this->_num_const_regexp  . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)';
818
+                                . $this->_var_regexp . '|' . $this->_num_const_regexp  . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)';
819 819
 
820 820
         // matches valid parenthesised function parameters:
821 821
         //
@@ -823,8 +823,8 @@  discard block
 block discarded – undo
823 823
         //    $foo, $bar, "text"
824 824
         // $foo|bar, "foo"|bar, $foo->bar($foo)|bar
825 825
         $this->_parenth_param_regexp = '(?:\((?:\w+|'
826
-                                       . $this->_param_regexp . '(?:\s*,\s*(?:(?:\w+|'
827
-                                       . $this->_param_regexp . ')))*)?\))';
826
+                                        . $this->_param_regexp . '(?:\s*,\s*(?:(?:\w+|'
827
+                                        . $this->_param_regexp . ')))*)?\))';
828 828
 
829 829
         // matches valid function call:
830 830
         // foo()
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public $compile_id = null;
54 54
 
55
-    public $cache_id = null;    // This is a smarty caching ID, not a caches.cache_id.
55
+    public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id.
56 56
 
57 57
     public string $title = '';
58 58
 
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 
493 493
         $args = func_get_args();
494 494
         unset($args[0]);
495
-        for ($i = 1; isset($args[$i]); $i ++) {
495
+        for ($i = 1; isset($args[$i]); $i++) {
496 496
             $this->assign('p' . $i, $args[$i]);
497 497
         }
498 498
 
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         // |foo|bar
795 795
         // |foo:$foo->bar
796 796
         $this->_mod_regexp = '(?:\|@?\w+(?::(?:\w+|' . $this->_num_const_regexp . '|'
797
-                             . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)';
797
+                             . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp . '))*)';
798 798
 
799 799
         // matches valid function name:
800 800
         // foo123
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
         // "text"|bar
816 816
         // $foo->bar
817 817
         $this->_param_regexp = '(?:\s*(?:' . $this->_obj_call_regexp . '|'
818
-                               . $this->_var_regexp . '|' . $this->_num_const_regexp  . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)';
818
+                               . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)';
819 819
 
820 820
         // matches valid parenthesised function parameters:
821 821
         //
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/RolesControllerBackend.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -129,10 +129,10 @@  discard block
 block discarded – undo
129 129
 
130 130
         return $this->render(
131 131
             'backend/roles/team.assignment.html.twig', [
132
-                                                         'rolesUserSearchForm' => $form->createView(),
133
-                                                         'user_account_details' => $fetchedUser,
134
-                                                         'roleNames' => $roleNames
135
-                                                     ]
132
+                                                            'rolesUserSearchForm' => $form->createView(),
133
+                                                            'user_account_details' => $fetchedUser,
134
+                                                            'roleNames' => $roleNames
135
+                                                        ]
136 136
         );
137 137
     }
138 138
 
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
 
162 162
         return $this->render(
163 163
             'backend/roles/team.assignment.html.twig', [
164
-                                                         'rolesUserSearchForm' => $form->createView(),
165
-                                                         'user_account_details' => $fetchedUser,
166
-                                                         'roleNames' => $roleNames
167
-                                                     ]
164
+                                                            'rolesUserSearchForm' => $form->createView(),
165
+                                                            'user_account_details' => $fetchedUser,
166
+                                                            'roleNames' => $roleNames
167
+                                                        ]
168 168
         );
169 169
     }
170 170
 
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
 
195 195
         return $this->render(
196 196
             'backend/roles/team.assignment.html.twig', [
197
-                                                         'rolesUserSearchForm' => $form->createView(),
198
-                                                         'user_account_details' => $fetchedUser,
199
-                                                         'roleNames' => $roleNames
200
-                                                     ]
197
+                                                            'rolesUserSearchForm' => $form->createView(),
198
+                                                            'user_account_details' => $fetchedUser,
199
+                                                            'roleNames' => $roleNames
200
+                                                        ]
201 201
         );
202 202
     }
203 203
 }
Please login to merge, or discard this 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/Controller/Backend/SupportControllerBackend.php 2 patches
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
 
@@ -233,10 +233,10 @@  discard block
 block discarded – undo
233 233
 
234 234
         return $this->render(
235 235
             'backend/support/bonusCaches.html.twig', [
236
-                                                       'supportCachesForm' => $formSearch->createView(),
237
-                                                       'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(),
238
-                                                       'bonusCaches_by_id' => $fetchedBonuscaches
239
-                                                   ]
236
+                                                        'supportCachesForm' => $formSearch->createView(),
237
+                                                        'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(),
238
+                                                        'bonusCaches_by_id' => $fetchedBonuscaches
239
+                                                    ]
240 240
         );
241 241
     }
242 242
 
@@ -259,10 +259,10 @@  discard block
 block discarded – undo
259 259
 
260 260
         return $this->render(
261 261
             'backend/support/bonusCachesAssignment.html.twig', [
262
-                                                                 'supportCachesForm' => $formSearch->createView(),
263
-                                                                 'bonus_Cache' => $wpID,
264
-                                                                 'caches_by_owner' => $fetchedOwnerCaches
265
-                                                             ]
262
+                                                                    'supportCachesForm' => $formSearch->createView(),
263
+                                                                    'bonus_Cache' => $wpID,
264
+                                                                    'caches_by_owner' => $fetchedOwnerCaches
265
+                                                                ]
266 266
         );
267 267
     }
268 268
 
@@ -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
 
@@ -401,10 +401,10 @@  discard block
 block discarded – undo
401 401
 
402 402
         return $this->render(
403 403
             'backend/support/databaseQueries.html.twig', [
404
-                                                           'supportCachesForm' => $formSearch->createView(),
405
-                                                           'SQLFlexForm' => $formSQLFlex->createView(),
406
-                                                           'suppSQLqueryFlex' => $fetchedInformation
407
-                                                       ]
404
+                                                            'supportCachesForm' => $formSearch->createView(),
405
+                                                            'SQLFlexForm' => $formSQLFlex->createView(),
406
+                                                            'suppSQLqueryFlex' => $fetchedInformation
407
+                                                        ]
408 408
         );
409 409
     }
410 410
 
@@ -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
 
@@ -682,10 +682,10 @@  discard block
 block discarded – undo
682 682
 
683 683
         return $this->render(
684 684
             'backend/support/userDetails.html.twig', [
685
-                                                       'supportCachesForm' => $formSearch->createView(),
686
-                                                       'supportUserAccountActions' => $formActions->createView(),
687
-                                                       'user_account_details' => $fetchedUserDetails
688
-                                                   ]
685
+                                                        'supportCachesForm' => $formSearch->createView(),
686
+                                                        'supportUserAccountActions' => $formActions->createView(),
687
+                                                        'user_account_details' => $fetchedUserDetails
688
+                                                    ]
689 689
         );
690 690
     }
691 691
 
@@ -781,9 +781,9 @@  discard block
 block discarded – undo
781 781
 
782 782
         return $this->render(
783 783
             'backend/support/databaseQueries.html.twig', [
784
-                                                           'supportCachesForm' => $formSearch->createView(),
785
-                                                           'suppSQLquery1' => $qb->executeQuery()->fetchAllAssociative()
786
-                                                       ]
784
+                                                            'supportCachesForm' => $formSearch->createView(),
785
+                                                            'suppSQLquery1' => $qb->executeQuery()->fetchAllAssociative()
786
+                                                        ]
787 787
         );
788 788
     }
789 789
 
@@ -809,9 +809,9 @@  discard block
 block discarded – undo
809 809
 
810 810
         return $this->render(
811 811
             'backend/support/databaseQueries.html.twig', [
812
-                                                           'supportCachesForm' => $formSearch->createView(),
813
-                                                           'suppSQLquery2' => $qb->executeQuery()->fetchAllAssociative()
814
-                                                       ]
812
+                                                            'supportCachesForm' => $formSearch->createView(),
813
+                                                            'suppSQLquery2' => $qb->executeQuery()->fetchAllAssociative()
814
+                                                        ]
815 815
         );
816 816
     }
817 817
 
@@ -844,9 +844,9 @@  discard block
 block discarded – undo
844 844
 
845 845
         return $this->render(
846 846
             'backend/support/databaseQueries.html.twig', [
847
-                                                           'supportCachesForm' => $formSearch->createView(),
848
-                                                           'suppSQLquery4' => $qb->executeQuery()->fetchAllAssociative()
849
-                                                       ]
847
+                                                            'supportCachesForm' => $formSearch->createView(),
848
+                                                            'suppSQLquery4' => $qb->executeQuery()->fetchAllAssociative()
849
+                                                        ]
850 850
         );
851 851
     }
852 852
 
@@ -863,9 +863,9 @@  discard block
 block discarded – undo
863 863
 
864 864
         return $this->render(
865 865
             'backend/support/databaseQueries.html.twig', [
866
-                                                           'supportCachesForm' => $formSearch->createView(),
867
-                                                           'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll()
868
-                                                       ]
866
+                                                            'supportCachesForm' => $formSearch->createView(),
867
+                                                            'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll()
868
+                                                        ]
869 869
         );
870 870
     }
871 871
 
@@ -909,9 +909,9 @@  discard block
 block discarded – undo
909 909
 
910 910
         return $this->render(
911 911
             'backend/support/databaseQueries.html.twig', [
912
-                                                           'supportCachesForm' => $formSearch->createView(),
913
-                                                           'suppSQLquery6' => $qb_caches_list
914
-                                                       ]
912
+                                                            'supportCachesForm' => $formSearch->createView(),
913
+                                                            'suppSQLquery6' => $qb_caches_list
914
+                                                        ]
915 915
         );
916 916
     }
917 917
 
@@ -1030,15 +1030,15 @@  discard block
 block discarded – undo
1030 1030
 
1031 1031
         return $this->render(
1032 1032
             'backend/support/occ_gpx_import.html.twig', [
1033
-                                                          'supportCachesForm' => $formSearch->createView(),
1034
-                                                          'supportUploadGPXForm' => $formUpload->createView(),
1035
-                                                          'amountProcessedCaches' => $amountProcessedCaches,
1036
-                                                          'amountAssignedCaches' => $amountAssignedCaches,
1037
-                                                          'amountUpdatedCaches' => $amountUpdatedCaches,
1038
-                                                          'listOfAmbiguousCaches' => $listOfAmbiguousCaches,
1039
-                                                          'fetchedListingInfos' => $fetchedListingInfos,
1040
-                                                          'differencesDetected' => $differencesDetected
1041
-                                                      ]
1033
+                                                            'supportCachesForm' => $formSearch->createView(),
1034
+                                                            'supportUploadGPXForm' => $formUpload->createView(),
1035
+                                                            'amountProcessedCaches' => $amountProcessedCaches,
1036
+                                                            'amountAssignedCaches' => $amountAssignedCaches,
1037
+                                                            'amountUpdatedCaches' => $amountUpdatedCaches,
1038
+                                                            'listOfAmbiguousCaches' => $listOfAmbiguousCaches,
1039
+                                                            'fetchedListingInfos' => $fetchedListingInfos,
1040
+                                                            'differencesDetected' => $differencesDetected
1041
+                                                        ]
1042 1042
         );
1043 1043
     }
1044 1044
 
@@ -1205,11 +1205,11 @@  discard block
 block discarded – undo
1205 1205
                     ] as $checkItem) {
1206 1206
                         if ($wpt[$checkItem] != $fetchedExistingSupportListingInfoArray[$checkItem]) {
1207 1207
                             $newComment .= $checkItem
1208
-                                           . ' changed from '
1209
-                                           . $fetchedExistingSupportListingInfoArray[$checkItem]
1210
-                                           . ' to '
1211
-                                           . $wpt[$checkItem]
1212
-                                           . PHP_EOL;
1208
+                                            . ' changed from '
1209
+                                            . $fetchedExistingSupportListingInfoArray[$checkItem]
1210
+                                            . ' to '
1211
+                                            . $wpt[$checkItem]
1212
+                                            . PHP_EOL;
1213 1213
                         }
1214 1214
                     }
1215 1215
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
             $inputData = $formSQLFlex->getData();
247 247
 
248 248
             $fetchedInformation =
249
-                $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE'], (string) $inputData['content_CONDITION']);
249
+                $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE'], (string)$inputData['content_CONDITION']);
250 250
 
251 251
             $countFetched = count($fetchedInformation);
252
-            for ($i = 0; $i < $countFetched; $i ++) {
252
+            for ($i = 0; $i < $countFetched; $i++) {
253 253
                 if (array_key_exists('password', $fetchedInformation[$i])) {
254 254
                     $fetchedInformation[$i]['password'] = '-';
255 255
                 }
@@ -425,18 +425,18 @@  discard block
 block discarded – undo
425 425
             $inputData = $form->getData();
426 426
 
427 427
             if ($inputData['hidden_sender'] == 'textfield_cache_comment') {
428
-                $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string) $inputData['hidden_ID2']]);
428
+                $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string)$inputData['hidden_ID2']]);
429 429
                 $entity->comment = $inputData['content_comment_field'];
430 430
                 $this->supportListingCommentsRepository->update($entity);
431 431
             } elseif ($inputData['hidden_sender'] == 'textfield_user_comment') {
432
-                $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int) $inputData['hidden_ID1']]);
432
+                $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int)$inputData['hidden_ID1']]);
433 433
                 $entity->comment = $inputData['content_comment_field'];
434 434
                 $this->supportUserCommentsRepository->update($entity);
435 435
             }
436 436
 
437 437
             return $this->redirectToRoute('backend_support_occ', [
438
-                'userID' => (string) $inputData['hidden_ID1'],
439
-                'wpID' => (string) $inputData['hidden_ID2']
438
+                'userID' => (string)$inputData['hidden_ID1'],
439
+                'wpID' => (string)$inputData['hidden_ID2']
440 440
             ]);
441 441
         }
442 442
 
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
         if ($form->isSubmitted() && $form->isValid()) {
460 460
             $inputData = $form->getData();
461 461
 
462
-            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_ID1']]);
462
+            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_ID1']]);
463 463
             $entity->comment = $inputData['content_comment_field'];
464 464
 
465 465
             $this->cacheReportsRepository->update($entity);
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
                 $entity = $this->supportListingInfosRepository->getEntityFromDatabaseArray($wpt);
1010 1010
                 $this->supportListingInfosRepository->create($entity);
1011 1011
 
1012
-                $amountAssignedCaches ++;
1012
+                $amountAssignedCaches++;
1013 1013
             }
1014 1014
         }
1015 1015
 
Please login to merge, or discard this patch.
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.