Passed
Pull Request — development (#359)
by Markus
08:05
created
htdocs/search.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 }
133 133
 
134
-$queryid += 0;  // safety measure: force $queryid to be numeric
134
+$queryid += 0; // safety measure: force $queryid to be numeric
135 135
 
136 136
 
137 137
 //=========================================================
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     if (sql_num_rows($query_rs) == 0) {
153 153
         // can happen if logged out after query was created (fix for RT #3915)
154 154
         $queryid = 0;
155
-        goto newquery;  // goto needs PHP 5.3
155
+        goto newquery; // goto needs PHP 5.3
156 156
         /*
157 157
         $tpl->error($error_query_not_found);
158 158
         */
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         }
189 189
 
190 190
         // get findername from finderid
191
-        $options['finderid'] = isset($options['finderid']) ? $options['finderid'] + 0 : 0;  // Ocprop
191
+        $options['finderid'] = isset($options['finderid']) ? $options['finderid'] + 0 : 0; // Ocprop
192 192
         if (isset($options['finder']) && $options['finderid'] > 0) {
193 193
             $rs_name = sql("SELECT `username` FROM `user` WHERE `user_id`='&1'", $options['finderid']);
194 194
             if (sql_num_rows($rs_name) == 1) {
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         }
201 201
 
202 202
         // get ownername from ownerid
203
-        $options['ownerid'] = isset($options['ownerid']) ? $options['ownerid'] + 0 : 0;  // Ocprop
203
+        $options['ownerid'] = isset($options['ownerid']) ? $options['ownerid'] + 0 : 0; // Ocprop
204 204
         if (isset($options['owner']) && $options['ownerid'] > 0) {
205 205
             $rs_name = sql("SELECT `username` FROM `user` WHERE `user_id`='&1'", $options['ownerid']);
206 206
             if (sql_num_rows($rs_name) == 1) {
@@ -237,10 +237,10 @@  discard block
 block discarded – undo
237 237
     }
238 238
 
239 239
     // get the search options parameters and store them in the queries table (to view "the next page")
240
-    $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? $_REQUEST['f_userowner'] : 0;  // Ocprop
241
-    $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? $_REQUEST['f_userfound'] : 0;  // Ocprop
240
+    $options['f_userowner'] = isset($_REQUEST['f_userowner']) ? $_REQUEST['f_userowner'] : 0; // Ocprop
241
+    $options['f_userfound'] = isset($_REQUEST['f_userfound']) ? $_REQUEST['f_userfound'] : 0; // Ocprop
242 242
     $options['f_disabled'] = isset($_REQUEST['f_disabled']) ? $_REQUEST['f_disabled'] : 0;
243
-    $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? $_REQUEST['f_inactive'] : 1;  // Ocprop
243
+    $options['f_inactive'] = isset($_REQUEST['f_inactive']) ? $_REQUEST['f_inactive'] : 1; // Ocprop
244 244
     // f_inactive formerly was used for both, archived and disabled caches.
245 245
     // After adding the separate f_disabled option, it is used only for archived
246 246
     // caches, but keeps its name for compatibility with existing stored or
@@ -248,15 +248,15 @@  discard block
 block discarded – undo
248 248
     $options['f_ignored'] = isset($_REQUEST['f_ignored']) ? $_REQUEST['f_ignored'] : 1;
249 249
     $options['f_otherPlatforms'] = isset($_REQUEST['f_otherPlatforms']) ? $_REQUEST['f_otherPlatforms'] : 0;
250 250
     $options['f_geokrets'] = isset($_REQUEST['f_geokrets']) ? $_REQUEST['f_geokrets'] : 0;
251
-    $options['expert'] = isset($_REQUEST['expert']) ? $_REQUEST['expert'] : 0;  // Ocprop: 0
251
+    $options['expert'] = isset($_REQUEST['expert']) ? $_REQUEST['expert'] : 0; // Ocprop: 0
252 252
     $options['showresult'] = isset($_REQUEST['showresult']) ? $_REQUEST['showresult'] : 0;
253
-    $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML';  // Ocprop: HTML
253
+    $options['output'] = isset($_REQUEST['output']) ? $_REQUEST['output'] : 'HTML'; // Ocprop: HTML
254 254
     $options['bbox'] = isset($_REQUEST['bbox']) ? $_REQUEST['bbox'] : false;
255 255
 
256 256
     if (isset($_REQUEST['cache_attribs'])) {
257 257
         if ($_REQUEST['cache_attribs'] != '') {
258 258
             $aAttribs = mb_split(';', $_REQUEST['cache_attribs']);
259
-            for ($i = 0; $i < count($aAttribs); $i ++) {
259
+            for ($i = 0; $i < count($aAttribs); $i++) {
260 260
                 $options['cache_attribs'][$aAttribs[$i] + 0] = $aAttribs[$i] + 0;
261 261
             }
262 262
             unset($aAttribs);
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     if (isset($_REQUEST['cache_attribs_not'])) {
271 271
         if ($_REQUEST['cache_attribs_not'] != '') {
272 272
             $aAttribs = mb_split(';', $_REQUEST['cache_attribs_not']);
273
-            for ($i = 0; $i < count($aAttribs); $i ++) {
273
+            for ($i = 0; $i < count($aAttribs); $i++) {
274 274
                 $options['cache_attribs_not'][$aAttribs[$i] + 0] = $aAttribs[$i] + 0;
275 275
             }
276 276
             unset($aAttribs);
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
         $options['finderid'] = isset($_REQUEST['finderid']) ? $_REQUEST['finderid'] : 0;
310 310
         $options['finder'] = isset($_REQUEST['finder']) ? stripslashes($_REQUEST['finder']) : '';
311
-        $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7';  // Ocprop
311
+        $options['logtype'] = isset($_REQUEST['logtype']) ? $_REQUEST['logtype'] : '1,7'; // Ocprop
312 312
     } elseif ((isset($_REQUEST['searchbyortplz']) && is_numeric($_REQUEST['ortplz']))
313 313
               || isset($_REQUEST['searchbyplz'])) {
314 314
         $options['searchtype'] = 'byplz';
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         if (!$list->allowView($password)) {
382 382
             $tpl->redirect("cachelists.php");
383 383
         }
384
-        $options['cachelist'] = cachelist::getListById($options['listid']);  // null for invalid ID
384
+        $options['cachelist'] = cachelist::getListById($options['listid']); // null for invalid ID
385 385
         $options['cachelist_pw'] = $password;
386 386
     } elseif (isset($_REQUEST['searchall'])) {
387 387
         if (!$login->logged_in() &&
@@ -659,7 +659,7 @@  discard block
 block discarded – undo
659 659
                                 }
660 660
                                 $sqlhashes .= '`gns_search`.`simplehash`=' . sprintf("%u", crc32($searchstring));
661 661
 
662
-                                $wordscount ++;
662
+                                $wordscount++;
663 663
                             }
664 664
                         }
665 665
 
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
                 $sql_where[] = '`s' . $n . '`.`hash`=\'' . sql_escape($h) . '\'';
1002 1002
                 $sql_where[] = '`s' . $n . '`.`object_type` IN (' . implode(',', $ft_types) . ')';
1003 1003
 
1004
-                $n ++;
1004
+                $n++;
1005 1005
             }
1006 1006
 
1007 1007
             $sqlFilter =
@@ -1159,7 +1159,7 @@  discard block
 block discarded – undo
1159 1159
         if ($options['cachetype'] != '') {
1160 1160
             $types = explode(';', $options['cachetype']);
1161 1161
             if (count($types) < sql_value_slave("SELECT COUNT(*) FROM `cache_type`", 0)) {
1162
-                for ($i = 0; $i < count($types); $i ++) {
1162
+                for ($i = 0; $i < count($types); $i++) {
1163 1163
                     $types[$i] = "'" . sql_escape($types[$i]) . "'";
1164 1164
                 }
1165 1165
                 $sql_where[] = '`caches`.`type` IN (' . implode(',', $types) . ')';
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
         if ($options['cachesize'] != '') {
1170 1170
             $sizes = explode(';', $options['cachesize']);
1171 1171
             if (count($sizes) < sql_value_slave("SELECT COUNT(*) FROM `cache_size`", 0)) {
1172
-                for ($i = 0; $i < count($sizes); $i ++) {
1172
+                for ($i = 0; $i < count($sizes); $i++) {
1173 1173
                     $sizes[$i] = "'" . sql_escape($sizes[$i]) . "'";
1174 1174
                 }
1175 1175
                 $sql_where[] = '`caches`.`size` IN (' . implode(',', $sizes) . ')';
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
     //  X6. load output module and output-dependent options
1255 1255
     //=================================================================
1256 1256
 
1257
-    $output_module = mb_strtolower($options['output']);  // Ocprop: HTML, gpx
1257
+    $output_module = mb_strtolower($options['output']); // Ocprop: HTML, gpx
1258 1258
 
1259 1259
     $map2_bounds = ($output_module == 'map2bounds');
1260 1260
     if ($map2_bounds) {
@@ -1800,7 +1800,7 @@  discard block
 block discarded – undo
1800 1800
     $dfromwaypoint_checked = ($options['searchtype'] == 'bywaypoint');
1801 1801
     $dfromcoords_checked = ($options['searchtype'] == 'coords');
1802 1802
     if (!$dfromortplz_checked && !$dfromwaypoint_checked && !$dfromcoords_checked) {
1803
-        $dfromcoords_checked = true;  // default
1803
+        $dfromcoords_checked = true; // default
1804 1804
     }
1805 1805
     $tpl->assign('dfromortplz_checked', $dfromortplz_checked);
1806 1806
     $tpl->assign('dfromwaypoint_checked', $dfromwaypoint_checked);
@@ -2023,7 +2023,7 @@  discard block
 block discarded – undo
2023 2023
             $line = mb_ereg_replace('{color}', $rAttrGroup['color'], $line);
2024 2024
 
2025 2025
             $group_line .= $line;
2026
-            $nLineAttrCount2 ++;
2026
+            $nLineAttrCount2++;
2027 2027
         }
2028 2028
         sql_free_result($rs);
2029 2029
 
@@ -2134,7 +2134,7 @@  discard block
 block discarded – undo
2134 2134
             $line = mb_ereg_replace('{color}', $rAttrGroup['color'], $line);
2135 2135
 
2136 2136
             $group_line .= $line;
2137
-            $nLineAttrCount1 ++;
2137
+            $nLineAttrCount1++;
2138 2138
         }
2139 2139
         sql_free_result($rs);
2140 2140
 
@@ -2277,7 +2277,7 @@  discard block
 block discarded – undo
2277 2277
 
2278 2278
 function outputUniidSelectionForm($uniSql, $options)
2279 2279
 {
2280
-    global $tpl;  // settings
2280
+    global $tpl; // settings
2281 2281
     global $locline, $secondlocationname;
2282 2282
 
2283 2283
     $urlparamString = prepareLocSelectionForm($options);
@@ -2387,7 +2387,7 @@  discard block
 block discarded – undo
2387 2387
         $thislocation = mb_ereg_replace('{locid}', urlencode($r['uni_id']), $thislocation);
2388 2388
         $thislocation = mb_ereg_replace('{nr}', $nr, $thislocation);
2389 2389
 
2390
-        $nr ++;
2390
+        $nr++;
2391 2391
         $locations .= $thislocation . "\n";
2392 2392
     }
2393 2393
     sql_free_result($rs);
@@ -2480,7 +2480,7 @@  discard block
 block discarded – undo
2480 2480
             $thislocation = mb_ereg_replace('{bgcolor}', $bgcolor2, $thislocation);
2481 2481
         }
2482 2482
 
2483
-        $nr ++;
2483
+        $nr++;
2484 2484
         $locations .= $thislocation . "\n";
2485 2485
     }
2486 2486
 
Please login to merge, or discard this patch.
htdocs/lib2/logic/const.inc.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@  discard block
 block discarded – undo
16 16
 define('RE_TYPE_FLOAT', 5);
17 17
 define('RE_TYPE_DOUBLE', 6);
18 18
 
19
-define('RE_INSERT_NOTHING', 0);       //
20
-define('RE_INSERT_OVERWRITE', 1);     // ignore given values and use function
21
-define('RE_INSERT_IGNORE', 2);        // dont use this column on insert
19
+define('RE_INSERT_NOTHING', 0); //
20
+define('RE_INSERT_OVERWRITE', 1); // ignore given values and use function
21
+define('RE_INSERT_IGNORE', 2); // dont use this column on insert
22 22
 define('RE_INSERT_AUTOINCREMENT', 4); // column is an auto increment column
23
-define('RE_INSERT_AUTOUUID', 8);      // if empty, UUID is generated by before insert trigger (not supported for primary key fields)
24
-define('RE_INSERT_NOW', 16);          // NOW()
23
+define('RE_INSERT_AUTOUUID', 8); // if empty, UUID is generated by before insert trigger (not supported for primary key fields)
24
+define('RE_INSERT_NOW', 16); // NOW()
25 25
 
26 26
 define('EUROPEAN_LETTERS', 'A-Za-zÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ');
27 27
 // ASCII + ISO-8859-1 0xC0..0xFF
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
 define('REGEX_FIRST_NAME', REGEX_LAST_NAME);
32 32
 define('REGEX_STATPIC_TEXT', '^[' . EUROPEAN_LETTERS . '0-9\.\-_ @=)(\/\\\&*\$+~#!§%;,-?:\[\]{}¹²³\'\"`\|µ°\%]{0,30}$');
33 33
 
34
-define('ADMIN_TRANSLATE', 1);     // edit translation
35
-define('ADMIN_MAINTAINANCE', 2);  // check table etc.
36
-define('ADMIN_USER', 4);          // drop users, caches etc.
37
-define('ADMIN_NEWS', 8);          // obsolete / reserved
38
-define('ADMIN_RESTORE', 16);      // restore vandalized listings
39
-define('ADMIN_ROOT', 128 | 127);  // root + all previous rights
40
-define('ADMIN_LISTING', 1024);    // can edit any cache listings
34
+define('ADMIN_TRANSLATE', 1); // edit translation
35
+define('ADMIN_MAINTAINANCE', 2); // check table etc.
36
+define('ADMIN_USER', 4); // drop users, caches etc.
37
+define('ADMIN_NEWS', 8); // obsolete / reserved
38
+define('ADMIN_RESTORE', 16); // restore vandalized listings
39
+define('ADMIN_ROOT', 128 | 127); // root + all previous rights
40
+define('ADMIN_LISTING', 1024); // can edit any cache listings
41 41
 
42 42
 define('ATTRIB_SELECTED', 1);
43 43
 define('ATTRIB_UNSELECTED', 2);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 define('USR_OPT_GMZOOM', 1);
69 69
 define('USR_OPT_SHOWSTATS', 5);
70 70
 define('USR_OPT_MAP_MENU', 6);
71
-define('USR_OPT_MAP_OVERVIEW', 7);   // obsolete, no longer supported since Google Maps 3.22
71
+define('USR_OPT_MAP_OVERVIEW', 7); // obsolete, no longer supported since Google Maps 3.22
72 72
 define('USR_OPT_MAP_MAXCACHES', 8);
73 73
 define('USR_OPT_MAP_ICONSET', 9);
74 74
 define('USR_OPT_MAP_PREVIEW', 10);
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
 // ID 15 was temporarily used and is reserved, see commit dda7ef0. Continue with 16.
80 80
 
81 81
 // user.data_license values
82
-define('OLD_DATA_LICSENSE', 0);                       // before deadline
83
-define('NEW_DATA_LICENSE_ACTIVELY_DECLINED', 1);      // declined license
84
-define('NEW_DATA_LICENSE_ACTIVELY_ACCEPTED', 2);      // accepted new license on registration
85
-define('NEW_DATA_LICENSE_PASSIVELY_ACCEPTED', 3);     // did not decline license until deadline
86
-define('NEW_DATA_LICENSE_PASSIVELY_DECLINED', 4);     // could not accept/decline because disabled
82
+define('OLD_DATA_LICSENSE', 0); // before deadline
83
+define('NEW_DATA_LICENSE_ACTIVELY_DECLINED', 1); // declined license
84
+define('NEW_DATA_LICENSE_ACTIVELY_ACCEPTED', 2); // accepted new license on registration
85
+define('NEW_DATA_LICENSE_PASSIVELY_ACCEPTED', 3); // did not decline license until deadline
86
+define('NEW_DATA_LICENSE_PASSIVELY_DECLINED', 4); // could not accept/decline because disabled
87 87
 
88 88
 //picture upload/resize parameters
89 89
 define('PICTURE_QUALITY', 85);
Please login to merge, or discard this patch.
htdocs/config2/locale.inc.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  *                 $opt['locale']
18 18
  ***************************************************************************/
19 19
 
20
-define('OC_LOCALE_ACTIVE', 2);    // enable language and show language button in header line
21
-define('OC_LOCALE_HIDDEN', 1);    // enable language but hide language button in header line
22
-define('OC_LOCALE_DISABLED', 0);  // disable language
20
+define('OC_LOCALE_ACTIVE', 2); // enable language and show language button in header line
21
+define('OC_LOCALE_HIDDEN', 1); // enable language but hide language button in header line
22
+define('OC_LOCALE_DISABLED', 0); // disable language
23 23
 
24 24
 $opt['template']['locales']['DE']['status'] = OC_LOCALE_ACTIVE;
25 25
 $opt['template']['locales']['DE']['flag'] = 'images/flag/DE.png';
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 $opt['locale']['DE']['page']['license'] = '<a rel="license" href="%1"><img alt="Creative Commons Lizenzvertrag" style="border-width:0" src="resource2/ocstyle/images/media/cc-by-nc-nd-small.png" /></a><div style="text-align:center; margin:8px 0 0 6px;">Die <a href="articles.php?page=impressum#datalicense">Inhalte</a> von {site} stehen unter der Creative-Commons-Lizenz <a rel="license" href="%1">BY-NC-ND 3.0 DE</a>.</div>';
132 132
 $opt['locale']['DE']['helpwiki'] = 'http://wiki.opencaching.de/index.php/';
133 133
 $opt['locale']['DE']['mostly_translated'] = true;
134
-$opt['locale']['DE']['what3words'] = true;  // "beta"
134
+$opt['locale']['DE']['what3words'] = true; // "beta"
135 135
 
136 136
 $opt['locale']['IT']['format']['dateshort'] = '%d/%m/%y';
137 137
 $opt['locale']['IT']['format']['dm'] = '%d/%m';
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 $opt['locale']['SV']['page']['subtitle1'] = 'Geocaching med Opencaching';
234 234
 $opt['locale']['SV']['page']['subtitle2'] = '';
235 235
 $opt['locale']['SV']['mostly_translated'] = false;
236
-$opt['locale']['SV']['what3words'] = true;  // "beta"
236
+$opt['locale']['SV']['what3words'] = true; // "beta"
237 237
 
238 238
 $opt['locale']['NO']['format']['dateshort'] = '%d.%m.%y';
239 239
 $opt['locale']['NO']['format']['dm'] = '%d.%m.';
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 $opt['locale']['RU']['country'] = 'RU';
284 284
 $opt['locale']['RU']['primary_lang_of'] = ['RU'];
285 285
 $opt['locale']['RU']['mostly_translated'] = false;
286
-$opt['locale']['RU']['what3words'] = true;   // "beta"
286
+$opt['locale']['RU']['what3words'] = true; // "beta"
287 287
 
288 288
 $opt['locale']['DA']['format']['dateshort'] = '%d.%m.%y';
289 289
 $opt['locale']['DA']['format']['dm'] = '%d.%m.';
Please login to merge, or discard this patch.
htdocs/lib/settings-dist.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 
145 145
 /* default locale
146 146
  */
147
-$opt['template']['default']['locale'] = 'DE';   // can be overwritten by $opt['domain'][<domain>]['locale']
147
+$opt['template']['default']['locale'] = 'DE'; // can be overwritten by $opt['domain'][<domain>]['locale']
148 148
 
149 149
 // include all locale settings
150 150
 require_once $rootpath . 'config2/locale.inc.php';
Please login to merge, or discard this patch.
htdocs/lib/clicompatbase.inc.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -239,10 +239,10 @@  discard block
 block discarded – undo
239 239
         // muss dieses & ersetzt werden, oder ist es escaped?
240 240
         $escapesCount = 0;
241 241
         while ((($nextarg - $escapesCount - 1) > 0) && (mb_substr($sql, $nextarg - $escapesCount - 1, 1) == '\\')) {
242
-            $escapesCount ++;
242
+            $escapesCount++;
243 243
         }
244 244
         if (($escapesCount % 2) == 1) {
245
-            $nextarg ++;
245
+            $nextarg++;
246 246
         } else {
247 247
             $nextchar = mb_substr($sql, $nextarg + 1, 1);
248 248
             if (is_numeric($nextchar)) {
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 while (mb_ereg_match('^[0-9]{1}', $nextchar) == 1) {
254 254
                     $arg .= $nextchar;
255 255
 
256
-                    $arglength ++;
256
+                    $arglength++;
257 257
                     $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1);
258 258
                 }
259 259
 
@@ -285,13 +285,13 @@  discard block
 block discarded – undo
285 285
                         // Anführungszeichen weg machen und NULL einsetzen
286 286
                         $filtered_sql = mb_substr($filtered_sql, 0, mb_strlen($filtered_sql) - 1);
287 287
                         $filtered_sql .= 'NULL';
288
-                        $sqlpos ++;
288
+                        $sqlpos++;
289 289
                     } else {
290 290
                         $filtered_sql .= 'NULL';
291 291
                     }
292 292
                 }
293 293
 
294
-                $sqlpos ++;
294
+                $sqlpos++;
295 295
             } else {
296 296
                 $arglength = 0;
297 297
                 $arg = '';
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                 while (mb_ereg_match('^[a-zA-Z0-9]{1}', $nextchar) == 1) {
301 301
                     $arg .= $nextchar;
302 302
 
303
-                    $arglength ++;
303
+                    $arglength++;
304 304
                     $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1);
305 305
                 }
306 306
 
@@ -329,12 +329,12 @@  discard block
 block discarded – undo
329 329
         $escapesCount = 0;
330 330
         while ((($nextarg - $escapesCount - 1) > 0) &&
331 331
                (mb_substr($filtered_sql, $nextarg - $escapesCount - 1, 1) == '\\')) {
332
-            $escapesCount ++;
332
+            $escapesCount++;
333 333
         }
334 334
         if (($escapesCount % 2) == 0) {
335 335
             // \& ersetzen durch &
336 336
             $filtered_sql = mb_substr($filtered_sql, 0, $nextarg) . '&' . mb_substr($filtered_sql, $nextarg + 2);
337
-            $nextarg --;
337
+            $nextarg--;
338 338
         }
339 339
 
340 340
         $nextarg = mb_strpos($filtered_sql, '\&', $nextarg + 2);
Please login to merge, or discard this patch.
htdocs/src/AppBundle/Command/CodeSnifferCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         }
44 44
 
45 45
         $process = new Process($cmd, $this->rootPath, null, null, 9600);
46
-        $process->run(function ($type, $buffer) {
46
+        $process->run(function($type, $buffer) {
47 47
             echo $buffer;
48 48
         });
49 49
 
Please login to merge, or discard this patch.
htdocs/src/AppBundle/Form/UploadFieldNotesType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                 ]
55 55
             );
56 56
 
57
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
57
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
58 58
             $data = $event->getData();
59 59
             $form = $event->getForm();
60 60
 
Please login to merge, or discard this patch.
local/prodsys/phpzip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     }
84 84
 
85 85
     $countParts = count($parts);
86
-    for ($i = 0; $i < $countParts; $i ++) {
86
+    for ($i = 0; $i < $countParts; $i++) {
87 87
         if (($parts[$i] == '..') || ($parts[$i] == '.')) {
88 88
             return false;
89 89
         }
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/lib/menu.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     /* selmenuitem contains the selected (bold) menu item */
286 286
     global $mnu_selmenuitem;
287 287
 
288
-    for ($i = 0, $ret = - 1; ($i < count($menustructure)) && ($ret == - 1); $i ++) {
288
+    for ($i = 0, $ret = - 1; ($i < count($menustructure)) && ($ret == - 1); $i++) {
289 289
         if ($menustructure[$i]['siteid'] == $pageid) {
290 290
             $mnu_selmenuitem = $menustructure[$i];
291 291
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     global $menu;
314 314
     $c = 0;
315 315
     $max = count($menu);
316
-    for ($i = 0; $i < $max; $i ++) {
316
+    for ($i = 0; $i < $max; $i++) {
317 317
         if ($menu[$i]['visible'] == true) {
318 318
             $sTarget = isset($menu[$i]['target']) ? $menu[$i]['target'] : '';
319 319
             $sItem = '<a href="' . $menu[$i]['filename'] . '" ' . $sTarget . '>' . htmlspecialchars(t($menu[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a>';
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 
329 329
             echo $sItem . "\n";
330 330
 
331
-            $c ++;
331
+            $c++;
332 332
         }
333 333
     }
334 334
 }
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 
349 349
     if (!$bHasSubmenu) {
350 350
         /* prüfen, ob ein Submenü vorhanden ist */
351
-        for ($i = 0, $bSubmenu = false; ($i < count($menustructure)) && ($bSubmenu == false); $i ++) {
351
+        for ($i = 0, $bSubmenu = false; ($i < count($menustructure)) && ($bSubmenu == false); $i++) {
352 352
             if (isset($menustructure[$i]['submenu'])) {
353 353
                 $bSubmenu = true;
354 354
             }
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         }
366 366
     }
367 367
     $maxMenuStructure = count($menustructure);
368
-    for ($i = 0; $i < $maxMenuStructure; $i ++) {
368
+    for ($i = 0; $i < $maxMenuStructure; $i++) {
369 369
         if ($menustructure[$i]['visible'] == true) {
370 370
             if ($menustructure[$i]['siteid'] == $pageid) {
371 371
                 echo '<li class="' . $cssclass . ' group_active"><a href="' . $menustructure[$i]['filename'] . '">' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8') . '</a></li>' . "\n";
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 function mnu_IsMenuParentOf($parentmenuitems, $menuitemid)
399 399
 {
400 400
     $countParentMenuItems = count($parentmenuitems);
401
-    for ($i = 0; $i < $countParentMenuItems; $i ++) {
401
+    for ($i = 0; $i < $countParentMenuItems; $i++) {
402 402
         if ($parentmenuitems[$i]['siteid'] == $menuitemid) {
403 403
             return true;
404 404
         }
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 function mnu_prv_EchoBreadCrumbSubItem($pageid, $menustructure)
441 441
 {
442 442
     $maxMenuStructure = count($menustructure);
443
-    for ($i = 0; $i < $maxMenuStructure; $i ++) {
443
+    for ($i = 0; $i < $maxMenuStructure; $i++) {
444 444
         if ($menustructure[$i]['siteid'] == $pageid) {
445 445
             echo '&nbsp;&gt;&nbsp;' . htmlspecialchars(t($menustructure[$i]['menustring']), ENT_COMPAT, 'UTF-8');
446 446
 
Please login to merge, or discard this patch.