Passed
Pull Request — master (#322)
by Mirko
08:41
created
htdocs/editlog.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                 tpl_set_var('rating_message', mb_ereg_replace('{rating_msg}', $rating_msg, $rating_tpl));
177 177
 
178 178
                 if (isset($_POST['descMode'])) {
179
-                    $descMode = $_POST['descMode'] + 0;  // Ocprop: 2
179
+                    $descMode = $_POST['descMode'] + 0; // Ocprop: 2
180 180
                     if (($descMode < 1) || ($descMode > 3)) {
181 181
                         $descMode = 3;
182 182
                     }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
                 tpl_set_var('logminute', htmlspecialchars($log_time_minute, ENT_COMPAT, 'UTF-8'));
435 435
                 tpl_set_var('cachename', htmlspecialchars($cache_name, ENT_COMPAT, 'UTF-8'));
436 436
                 tpl_set_var('cacheid', $log_record['cache_id']);
437
-                tpl_set_var('reset', $reset);  // obsolete
437
+                tpl_set_var('reset', $reset); // obsolete
438 438
                 tpl_set_var('submit', $submit);
439 439
                 tpl_set_var('logid', $log_id);
440 440
                 tpl_set_var('date_message', !$date_ok ? $date_message : '');
Please login to merge, or discard this patch.
htdocs/viewcache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     if ($count > 0) {
29 29
         $formatter = new FormatterCoordinate();
30 30
 
31
-        for ($i = 0; $i < $count; $i ++) {
31
+        for ($i = 0; $i < $count; $i++) {
32 32
             $waypoints[$i]['coord']['lat'] = $waypoints[$i]['coordinate']->latitude();
33 33
             $waypoints[$i]['coord']['lon'] = $waypoints[$i]['coordinate']->longitude();
34 34
             $waypoints[$i]['coordinateHtml'] = $formatter->formatHtml($waypoints[$i]['coordinate'], '<br />');
Please login to merge, or discard this patch.
htdocs/lib/settings-dist.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
 // sql debugging
128 128
 $sql_allow_debug = 0;
129
-$sql_debug_cryptkey = 'this is my very, very secret \'secret key\'';  // min. 24 chars
129
+$sql_debug_cryptkey = 'this is my very, very secret \'secret key\''; // min. 24 chars
130 130
 
131 131
 // replacements for sql()
132 132
 $sql_replacements['db'] = $dbname;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
 /* default locale
150 150
  */
151
-$opt['template']['default']['locale'] = 'DE';   // can be overwritten by $opt['domain'][<domain>]['locale']
151
+$opt['template']['default']['locale'] = 'DE'; // can be overwritten by $opt['domain'][<domain>]['locale']
152 152
 
153 153
 // include all locale settings
154 154
 require_once $rootpath . 'config2/locale.inc.php';
Please login to merge, or discard this patch.
htdocs/lib/settings-dev.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,11 +117,11 @@
 block discarded – undo
117 117
 /* maximum number of failed logins per hour before that IP address is blocked
118 118
  * (used to prevent brute-force-attacks)
119 119
  */
120
-$opt['page']['max_logins_per_hour'] = 1000;    // for development ...
120
+$opt['page']['max_logins_per_hour'] = 1000; // for development ...
121 121
 $opt['page']['headoverlay'] = 'oc_head_alpha3';
122 122
 
123 123
 // data license
124
-$opt['logic']['license']['disclaimer'] = true;   // also in lib2/settings-dist.inc.php
124
+$opt['logic']['license']['disclaimer'] = true; // also in lib2/settings-dist.inc.php
125 125
 $opt['logic']['license']['terms'] = $absolute_server_URI . 'articles.php?page=impressum#datalicense';
126 126
 
127 127
 $opt['logic']['admin']['listingadmin_notification'] = 'root';
Please login to merge, or discard this patch.
htdocs/lib/common.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -680,7 +680,7 @@
 block discarded – undo
680 680
 
681 681
     $str = $translate->t($str, '', basename(__FILE__), __LINE__);
682 682
     $args = func_get_args();
683
-    for ($nIndex = count($args) - 1; $nIndex > 0; $nIndex --) {
683
+    for ($nIndex = count($args) - 1; $nIndex > 0; $nIndex--) {
684 684
         $str = str_replace('%' . $nIndex, $args[$nIndex], $str);
685 685
     }
686 686
 
Please login to merge, or discard this patch.
htdocs/lib/consts-common.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  *  common constant definitions of lib1 and lib2
8 8
  ***************************************************************************/
9 9
 
10
-define('GUI_HTML', 0);   // also defined in lib/consts.inc.php
10
+define('GUI_HTML', 0); // also defined in lib/consts.inc.php
11 11
 define('GUI_TEXT', 1);
12 12
 
13
-define('HTTPS_DISABLED', 0);   // also defined in lib/consts.inc.php
13
+define('HTTPS_DISABLED', 0); // also defined in lib/consts.inc.php
14 14
 define('HTTPS_ENABLED', 1);
15 15
 define('HTTPS_ENFORCED', 2);
16 16
 
Please login to merge, or discard this patch.
htdocs/lib/settings-sample-dev.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
 // database names
20 20
 $dbname = 'opencaching';
21
-$tmpdbname = 'octmp';   // empty db with CREATE and DROP privileges
21
+$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges
22 22
 
23 23
 // common developer system settings
24 24
 require 'settings-dev.inc.php';
Please login to merge, or discard this patch.
htdocs/lib/sqldebugger.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     global $sqldbg_cmdNo;
156 156
     global $sqldbg_sumTimes;
157 157
 
158
-    $sqldbg_cmdNo ++;
158
+    $sqldbg_cmdNo++;
159 159
 
160 160
     echo '<p class="sqlno"><span class="white">/*</span> SQL command ' . $sqldbg_cmdNo . ' ';
161 161
     if ($bSlave) {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
         while ($r = sql_fetch_assoc($rs)) {
232 232
             $usebr = true;
233
-            $nLine ++;
233
+            $nLine++;
234 234
             if ($bFirstLine == true) {
235 235
                 echo '<tr>' . "\n";
236 236
                 foreach ($r as $field => $value) {
Please login to merge, or discard this patch.
htdocs/lib/clicompatbase.inc.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     while ($nCurPos < mb_strlen($str)) {
115 115
         $nNextSep = mb_strlen($str);
116
-        for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos ++) {
116
+        for ($nSepPos = 0; $nSepPos < mb_strlen($sep); $nSepPos++) {
117 117
             $nThisPos = mb_strpos($str, mb_substr($sep, $nSepPos, 1), $nCurPos);
118 118
             if ($nThisPos !== false) {
119 119
                 if ($nNextSep > $nThisPos) {
@@ -294,10 +294,10 @@  discard block
 block discarded – undo
294 294
         // muss dieses & ersetzt werden, oder ist es escaped?
295 295
         $escapesCount = 0;
296 296
         while ((($nextarg - $escapesCount - 1) > 0) && (mb_substr($sql, $nextarg - $escapesCount - 1, 1) == '\\')) {
297
-            $escapesCount ++;
297
+            $escapesCount++;
298 298
         }
299 299
         if (($escapesCount % 2) == 1) {
300
-            $nextarg ++;
300
+            $nextarg++;
301 301
         } else {
302 302
             $nextchar = mb_substr($sql, $nextarg + 1, 1);
303 303
             if (is_numeric($nextchar)) {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
                 while (mb_ereg_match('^[0-9]{1}', $nextchar) == 1) {
309 309
                     $arg .= $nextchar;
310 310
 
311
-                    $arglength ++;
311
+                    $arglength++;
312 312
                     $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1);
313 313
                 }
314 314
 
@@ -349,13 +349,13 @@  discard block
 block discarded – undo
349 349
                         // Anführungszeichen weg machen und NULL einsetzen
350 350
                         $filtered_sql = mb_substr($filtered_sql, 0, mb_strlen($filtered_sql) - 1);
351 351
                         $filtered_sql .= 'NULL';
352
-                        $sqlpos ++;
352
+                        $sqlpos++;
353 353
                     } else {
354 354
                         $filtered_sql .= 'NULL';
355 355
                     }
356 356
                 }
357 357
 
358
-                $sqlpos ++;
358
+                $sqlpos++;
359 359
             } else {
360 360
                 $arglength = 0;
361 361
                 $arg = '';
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
                 while (mb_ereg_match('^[a-zA-Z0-9]{1}', $nextchar) == 1) {
365 365
                     $arg .= $nextchar;
366 366
 
367
-                    $arglength ++;
367
+                    $arglength++;
368 368
                     $nextchar = mb_substr($sql, $nextarg + $arglength + 1, 1);
369 369
                 }
370 370
 
@@ -396,12 +396,12 @@  discard block
 block discarded – undo
396 396
                     $nextarg - $escapesCount - 1,
397 397
                     1
398 398
                 ) == '\\')) {
399
-            $escapesCount ++;
399
+            $escapesCount++;
400 400
         }
401 401
         if (($escapesCount % 2) == 0) {
402 402
             // \& ersetzen durch &
403 403
             $filtered_sql = mb_substr($filtered_sql, 0, $nextarg) . '&' . mb_substr($filtered_sql, $nextarg + 2);
404
-            $nextarg --;
404
+            $nextarg--;
405 405
         }
406 406
 
407 407
         $nextarg = mb_strpos($filtered_sql, '\&', $nextarg + 2);
Please login to merge, or discard this patch.