Passed
Push — development ( 91ddae...4a5b64 )
by Mirco
01:39
created
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.
htdocs/src/Oc/SmartyPlugins/function.season.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
     $nTimestamp = time();
83 83
     $countSeason = count($seasons);
84
-    for ($nIndex = 0; $nIndex < $countSeason; $nIndex ++) {
84
+    for ($nIndex = 0; $nIndex < $countSeason; $nIndex++) {
85 85
         if (strtotime($seasons[$nIndex][0]) > $nTimestamp) {
86 86
             return $params['winter'];
87 87
         } //'';
Please login to merge, or discard this patch.
htdocs/lib2/edithelper.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     } else {
85 85
         // convert smilies ...
86 86
         $countSmileyImage = count($smiley['image']);
87
-        for ($n = 0; $n < $countSmileyImage; $n ++) {
87
+        for ($n = 0; $n < $countSmileyImage; $n++) {
88 88
             $text = mb_ereg_replace(
89 89
                 "<img [^>]*?src=[^>]+?" . str_replace('.', '\.', $smiley['file'][$n]) . "[^>]+?>",
90 90
                 "[s![" . $smiley['text'][$n] . "]!s]",
Please login to merge, or discard this patch.
htdocs/lib2/logic/mailcheck.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public $sFrom = '[email protected]';
23 23
 
24 24
     public $nConnectTimeout = 15; // (sec)
25
-    public $nReadTimeout = 25;   // (sec)
25
+    public $nReadTimeout = 25; // (sec)
26 26
 
27 27
     /* check if the mailserver of $sAddress
28 28
      * explicit says that the user does not exist
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         // sort MX records
52 52
         $mxs = [];
53 53
         $countMxRecords = count($mx_records);
54
-        for ($i = 0; $i < $countMxRecords; $i ++) {
54
+        for ($i = 0; $i < $countMxRecords; $i++) {
55 55
             $mxs[$i] = [
56 56
                 'mx' => $mx_records[$i],
57 57
                 'prio' => $mx_weight[$i]
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         // check address with each MX until one mailserver can be connected
64 64
         $countMxs = count($mxs);
65
-        for ($i = 0; $i < $countMxs; $i ++) {
65
+        for ($i = 0; $i < $countMxs; $i++) {
66 66
             $retval = $this->pCheckAddress($sAddress, $mxs[$i]['mx']);
67 67
             if ($retval != CA_ERROR_CONNECT) {
68 68
                 return $retval;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         $s = "";
172 172
         stream_set_timeout($fp, $this->nReadTimeout);
173 173
 
174
-        for ($i = 0; $i < 2; $i ++) {
174
+        for ($i = 0; $i < 2; $i++) {
175 175
             $s .= fgets($fp, 1024);
176 176
         }
177 177
 
@@ -185,5 +185,5 @@  discard block
 block discarded – undo
185 185
         return 0;
186 186
     }
187 187
 
188
-    return (($a['prio'] + 0) < ($b['prio'] + 0)) ? - 1 : 1;
188
+    return (($a['prio'] + 0) < ($b['prio'] + 0)) ? -1 : 1;
189 189
 }
Please login to merge, or discard this patch.
htdocs/util2/google-earth/caches.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     $sZoomIn = str_replace("\r", "", $sZoomIn);
315 315
     $sLines = mb_split("\n", $sZoomIn);
316 316
     $countSLines = count($sLines);
317
-    for ($i = 0; $i < $countSLines; $i ++) {
317
+    for ($i = 0; $i < $countSLines; $i++) {
318 318
         $sLines[$i] = str_pad($sLines[$i], ($nColumnsCount - 1), ' ');
319 319
     }
320 320
 
@@ -322,8 +322,8 @@  discard block
 block discarded – undo
322 322
     $nDegreePerColumn = ($lon_to - $lon_from) / $nColumnsCount;
323 323
 
324 324
     $countSLines = count($sLines);
325
-    for ($nLine = 0; $nLine < $countSLines; $nLine ++) {
326
-        for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn ++) {
325
+    for ($nLine = 0; $nLine < $countSLines; $nLine++) {
326
+        for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn++) {
327 327
             if (substr($sLines[$nLine], $nColumn, 1) == '#') {
328 328
                 $nLat = $lat_to - $nDegreePerLine * $nLine;
329 329
                 $nLon = $lon_from + $nDegreePerColumn * $nColumn;
Please login to merge, or discard this patch.
htdocs/translate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
 
690 690
         $writer->writeElement('code', $r['text']);
691 691
         $countLang = count($lang);
692
-        for ($n = 0; $n < $countLang; $n ++) {
692
+        for ($n = 0; $n < $countLang; $n++) {
693 693
             $writer->writeElement(
694 694
                 $lang[$n],
695 695
                 sql_value(
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
 
818 818
     $nCount = isset($_REQUEST['count']) ? $_REQUEST['count'] + 0 : 0;
819 819
 
820
-    for ($nIndex = 1; $nIndex <= $nCount; $nIndex ++) {
820
+    for ($nIndex = 1; $nIndex <= $nCount; $nIndex++) {
821 821
         if (isset($_REQUEST['useitem' . $nIndex]) && ($_REQUEST['useitem' . $nIndex] == '1')) {
822 822
             $sCode = base64_decode($_REQUEST['code' . $nIndex]);
823 823
             $transId = sql_value("SELECT `id` FROM `sys_trans` WHERE `text`='&1'", 0, $sCode);
Please login to merge, or discard this patch.