Passed
Push — development ( 9f1fbc...c66aa5 )
by Mirco
22:08 queued 14:06
created
local/mailing/mailing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 foreach ($sendto as $receiver) {
43 43
     $receiver = trim($receiver);
44
-    echo ++ $n . "/$total: $receiver";
44
+    echo ++$n . "/$total: $receiver";
45 45
     mail(
46 46
         $receiver,
47 47
         $subject,
Please login to merge, or discard this patch.
local/devel/find_bad_encodings.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
 function test_encoding($path)
43 43
 {
44
-    static $ur_exclude = [  // no unicode reminder needed
44
+    static $ur_exclude = [// no unicode reminder needed
45 45
         'lang/de/ocstyle/search1/search.result.caches',
46 46
         'lib2/b2evo-captcha',
47 47
         'lib2/HTMLPurifier',
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 
42
+/**
43
+ * @param string $path
44
+ */
42 45
 function testforbom($path)
43 46
 {
44 47
     $filestart = file_get_contents($path, false, null, 0, 2);
Please login to merge, or discard this patch.
local/devel/style-cleanup.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,19 +108,19 @@  discard block
 block discarded – undo
108 108
                         && !preg_match("/^ *(\\*|\/\/|#) *\n$/", $line)) {
109 109
 
110 110
                         $old_line = $line;
111
-                        $line = rtrim($line);   # trims " \t\n\r\0\x0B"
111
+                        $line = rtrim($line); # trims " \t\n\r\0\x0B"
112 112
                         $line = $this->expandTabs($line);
113 113
                         $line .= "\n";
114 114
 
115 115
                         if ($line != $old_line) {
116 116
                             $file_modified = true;
117
-                            ++ $this->lines_modified;
117
+                            ++$this->lines_modified;
118 118
                         }
119 119
                     }
120 120
                     if (preg_match('/\<\?\s/', $line)) {   # relies on \n at EOL
121 121
                         self::warn('short open tag in line ' . $n . ' of ' . $display_filepath);
122 122
                     }
123
-                    ++ $n;
123
+                    ++$n;
124 124
                 }
125 125
 
126 126
                 # remove PHP close tags and empty lines from end of file
@@ -131,17 +131,17 @@  discard block
 block discarded – undo
131 131
                     if ($trimmed_line == '?>' || $trimmed_line == '') {
132 132
                         unset($lines[$l]);
133 133
                         $file_modified = true;
134
-                        ++ $this->lines_modified;
134
+                        ++$this->lines_modified;
135 135
                     } else {
136 136
                         break;
137 137
                     }
138
-                    -- $l;
138
+                    --$l;
139 139
                 }
140 140
 
141 141
                 if ($file_modified) {
142 142
                     echo 'cleaned ' . substr($filepath, 2) . "\n";
143 143
                     file_put_contents($filepath, implode('', $lines));
144
-                    ++ $this->files_modified;
144
+                    ++$this->files_modified;
145 145
                 }
146 146
             }
147 147
 
Please login to merge, or discard this patch.
local/maintenance/init_user_languages.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
                 $lang
32 32
             );
33 33
         }
34
-        ++ $set;
34
+        ++$set;
35 35
     }
36
-    if (++ $processed % 1000 == 0) {
36
+    if (++$processed % 1000 == 0) {
37 37
         echo "$set of $processed " . ($write ? '' : 'would be ') . "set\n";
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
local/maintenance/email_recovery.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
             "SELECT COUNT(*)
102 102
              FROM `" . $table . "`
103 103
              WHERE " . $this->getDateCondition($table, $dateField) .
104
-                       ($andWhere ? ' AND (' . $andWhere . ')' : ''),
104
+                        ($andWhere ? ' AND (' . $andWhere . ')' : ''),
105 105
             0
106 106
         );
107 107
         self::message(1, $objectCount . ' ' . $description);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             $er->resendActivationCodes();
53 53
             break;
54 54
         default:
55
-            die('invalid option: '. $option . "\n");
55
+            die('invalid option: ' . $option . "\n");
56 56
     }
57 57
 }
58 58
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         while ($r = sql_fetch_assoc($rs)) {
298 298
             $user = new user($r['user_id']);
299 299
             $user->sendRegistrationCode();
300
-            ++ $n;
300
+            ++$n;
301 301
         }
302 302
         sql_free_result($rs);
303 303
         self::message(0, $n . ' users have been re-sent the activation code');
Please login to merge, or discard this patch.
local/stat/coordstat.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     $year = substr($cache['date_created'], 0, 4);
27 27
     if ($year >= 2005 && $year <= date("Y") && ($lat != 0 || $long != 0)) {
28 28
         $years[$year] = true;
29
-        $liste[$lat][$long]["caches"][$year] ++;
29
+        $liste[$lat][$long]["caches"][$year]++;
30 30
     }
31 31
 }
32 32
 mysql_free_result($rs);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $year = substr($cache["date"], 0, 4);
51 51
         if ($year >= 2005 && $year <= date("Y") && ($lat != 0 || $long != 0)) {
52 52
             $years[$year] = true;
53
-            $liste[$lat][$long]["logs"][$year] ++;
53
+            $liste[$lat][$long]["logs"][$year]++;
54 54
         }
55 55
     }
56 56
     mysql_free_result($rs);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 while ($cache = sql_fetch_assoc($rs)) {
68 68
     $lat = floor($cache["latitude"] / $grid);
69 69
     $long = floor($cache["longitude"] / $grid);
70
-    $liste[$lat][$long]["caches"]["all"] ++;
70
+    $liste[$lat][$long]["caches"]["all"]++;
71 71
     $liste[$lat][$long]["logs"]["all"] += $cache["logs"];
72 72
 }
73 73
 mysql_free_result($rs);
Please login to merge, or discard this patch.
local/ocxml11client/xml2array.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@
 block discarded – undo
16 16
 
17 17
     public function push_pos(&$pos)
18 18
     {
19
-        $this->stack[count($this->stack)] =& $pos;
20
-        $this->stack_ref =& $pos;
19
+        $this->stack[count($this->stack)] = & $pos;
20
+        $this->stack_ref = & $pos;
21 21
     }
22 22
 
23 23
     public function pop_pos()
24 24
     {
25 25
         unset($this->stack[count($this->stack) - 1]);
26
-        $this->stack_ref =& $this->stack[count($this->stack) - 1];
26
+        $this->stack_ref = & $this->stack[count($this->stack) - 1];
27 27
     }
28 28
 
29 29
     public function parse($strInputXML)
Please login to merge, or discard this patch.
local/ocxml11client/settings-dist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 // Sessions verwenden?
29 29
 $opt['session'] = 1;
30
-$opt['zip'] = 'gzip';                // 0; zip; bzip2; gzip
30
+$opt['zip'] = 'gzip'; // 0; zip; bzip2; gzip
31 31
 
32 32
 // Gebietsauswahl nach Land
33 33
 $opt['bycountry'] = 0;
Please login to merge, or discard this patch.
local/ocxml11client/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     $nFileNr = 0;
68 68
     $rs = sql('SELECT `id`, `url` FROM `pictures` WHERE `local`=0');
69 69
     while ($r = sql_fetch_array($rs)) {
70
-        $nFileNr ++;
70
+        $nFileNr++;
71 71
         $fileparts = mb_split('/', $r['url']);
72 72
         $filename = $fileparts[count($fileparts) - 1];
73 73
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             exit;
238 238
         }
239 239
 
240
-        for ($i = 1; $i <= $filescount; $i ++) {
240
+        for ($i = 1; $i <= $filescount; $i++) {
241 241
             echo "Download Paket: " . $i . ' von ' . $filescount . "\n";
242 242
 
243 243
             $fileurl = $opt['url_getsession'];
@@ -411,11 +411,11 @@  discard block
 block discarded – undo
411 411
                             if ($sSubElement != '') {
412 412
                                 // vorheriges element zuerst schlißen
413 413
                                 $sSubElement = '';
414
-                                $nRecursionLevel --;
414
+                                $nRecursionLevel--;
415 415
                             }
416 416
 
417 417
                             $sSubElement = mb_strtoupper($xmlReader->name);
418
-                            $nRecursionLevel ++;
418
+                            $nRecursionLevel++;
419 419
 
420 420
                             // attribute auslesen
421 421
                             if ($xmlReader->moveToFirstAttribute()) {
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
                         } else {
433 433
                             if ($xmlReader->nodeType == XMLReader::END_ELEMENT) {
434 434
                                 $sSubElement = '';
435
-                                $nRecursionLevel --;
435
+                                $nRecursionLevel--;
436 436
                             }
437 437
                         }
438 438
                     }
Please login to merge, or discard this patch.