Passed
Pull Request — master (#322)
by Mirko
08:41
created
htdocs/util2/stats/owner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     $n = 1;
38 38
     while ($r = sql_fetch_assoc($rs)) {
39
-        echo "  <tr><td style='text-align:right'>&nbsp;&nbsp;" . ($n ++) . ".&nbsp;&nbsp;&nbsp;</td><td style='text-align:right'>" . $r['count'] . "</td><td>&nbsp;&nbsp;" . $r['name'] . "</td></tr>\n";
39
+        echo "  <tr><td style='text-align:right'>&nbsp;&nbsp;" . ($n++) . ".&nbsp;&nbsp;&nbsp;</td><td style='text-align:right'>" . $r['count'] . "</td><td>&nbsp;&nbsp;" . $r['name'] . "</td></tr>\n";
40 40
     }
41 41
     sql_free_result($rs);
42 42
 
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
@@ -313,15 +313,15 @@
 block discarded – undo
313 313
     // prepare lines
314 314
     $sZoomIn = str_replace("\r", "", $sZoomIn);
315 315
     $sLines = mb_split("\n", $sZoomIn);
316
-    for ($i = 0; $i < count($sLines); $i ++) {
316
+    for ($i = 0; $i < count($sLines); $i++) {
317 317
         $sLines[$i] = str_pad($sLines[$i], ($nColumnsCount - 1), ' ');
318 318
     }
319 319
 
320 320
     $nDegreePerLine = ($lat_to - $lat_from) / count($sLines);
321 321
     $nDegreePerColumn = ($lon_to - $lon_from) / $nColumnsCount;
322 322
 
323
-    for ($nLine = 0; $nLine < count($sLines); $nLine ++) {
324
-        for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn ++) {
323
+    for ($nLine = 0; $nLine < count($sLines); $nLine++) {
324
+        for ($nColumn = 0; $nColumn < $nColumnsCount; $nColumn++) {
325 325
             if (substr($sLines[$nLine], $nColumn, 1) == '#') {
326 326
                 $nLat = $lat_to - $nDegreePerLine * $nLine;
327 327
                 $nLon = $lon_from + $nDegreePerColumn * $nColumn;
Please login to merge, or discard this patch.
htdocs/util2/gns/mksearchindex.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     foreach ($simpletextsarray as $text) {
28 28
         if ($text != '') {
29 29
             if (nonalpha($text)) {
30
-                die($r['uni'] . ' ' . $text . "\n");// obsolete for the same reason as above
30
+                die($r['uni'] . ' ' . $text . "\n"); // obsolete for the same reason as above
31 31
             }
32 32
 
33 33
             $simpletext = search_text2simple($text);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 function nonalpha($str)
61 61
 {
62
-    for ($i = 0; $i < mb_strlen($str); $i ++) {
62
+    for ($i = 0; $i < mb_strlen($str); $i++) {
63 63
         if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) {
64 64
             return true;
65 65
         }
Please login to merge, or discard this patch.
htdocs/util2/gns/gns_import.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 // ported from lib1 to lib2 / untested!
23 23
 
24 24
 $opt['rootpath'] = '../../';
25
-require_once __DIR__.'/../../lib2/cli.inc.php';
25
+require_once __DIR__ . '/../../lib2/cli.inc.php';
26 26
 
27 27
 /* defaults */
28 28
 $importfiles = [
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     $file = fopen($filename, "r");
45 45
     $cnt = 0;
46 46
     while ($line = fgets($file, 4096)) {
47
-        if ($cnt ++ == 0) {// skip first line
47
+        if ($cnt++ == 0) {// skip first line
48 48
             continue;
49 49
         }
50 50
 
Please login to merge, or discard this patch.
htdocs/util2/geodb/make_searchindex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
 function nonalpha($str)
52 52
 {
53
-    for ($i = 0; $i < mb_strlen($str); $i ++) {
53
+    for ($i = 0; $i < mb_strlen($str); $i++) {
54 54
         if (!((ord(mb_substr($str, $i, 1)) >= ord('a')) && (ord(mb_substr($str, $i, 1)) <= ord('z')))) {
55 55
             return true;
56 56
         }
Please login to merge, or discard this patch.
htdocs/util2/license/process-old-disabled-users.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         die($result);
33 33
     }
34 34
 
35
-    ++ $n;
35
+    ++$n;
36 36
 }
37 37
 sql_free_result($rs);
38 38
 
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/purge_logs.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 class purge_logs
13 13
 {
14 14
     public $name = 'purge_logs';
15
-    public $interval = 86400;    // daily
15
+    public $interval = 86400; // daily
16 16
 
17 17
     public function run()
18 18
     {
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/autoarchive_caches.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 class autoarchive
13 13
 {
14 14
     public $name = 'autoarchive';
15
-    public $interval = 43200;  // twice per day
15
+    public $interval = 43200; // twice per day
16 16
 
17 17
 
18 18
     public function run()
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     'maintain the cache and re-enable the listing.',
86 86
                     $months
87 87
                 );
88
-                ++ $archived;
88
+                ++$archived;
89 89
 
90 90
                 // This limit throttles archiving. If something goes wrong, it won't
91 91
                 // produce too much trouble.
Please login to merge, or discard this patch.
htdocs/util2/cron/modules/maillog.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 class maillog
13 13
 {
14 14
     public $name = 'maillog';
15
-    public $interval = 600;  // every 10 minutes
15
+    public $interval = 600; // every 10 minutes
16 16
 
17 17
 
18 18
     public function run()
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $opt['system']['maillog']['syslog_db_user'],
34 34
             $opt['system']['maillog']['syslog_db_password'],
35 35
             true
36
-        );  // use separate connection even if on same DB host
36
+        ); // use separate connection even if on same DB host
37 37
         if ($dbc === false) {
38 38
             echo $this->name . ": could not connect to syslog database\n";
39 39
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         }
100 100
 
101 101
         while ($logentry = mysql_fetch_assoc($rs)) {
102
-            $message = $logentry['message'];   // latin-1 charset
102
+            $message = $logentry['message']; // latin-1 charset
103 103
             $delivered = strpos($message, 'status=sent') > 0;
104 104
             $bounced = strpos($message, 'status=bounced') > 0;
105 105
             if ($delivered || $bounced) {
Please login to merge, or discard this patch.