Passed
Pull Request — development (#359)
by Markus
08:05
created
htdocs/activation.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
 // We use short param codes 'u' and 'c' to generate short-enough activation
15 15
 // url that will not be wrapped in plain-text emails.
16 16
 
17
-$code = isset($_REQUEST['code']) ? trim($_REQUEST['code']) :
18
-    (isset($_REQUEST['c']) ? trim($_REQUEST['c']) : '');
19
-$email = isset($_REQUEST['email']) ? trim($_REQUEST['email']) :
20
-    (isset($_REQUEST['e']) ? trim($_REQUEST['e']) : '');
17
+$code = isset($_REQUEST['code']) ? trim($_REQUEST['code']) : (isset($_REQUEST['c']) ? trim($_REQUEST['c']) : '');
18
+$email = isset($_REQUEST['email']) ? trim($_REQUEST['email']) : (isset($_REQUEST['e']) ? trim($_REQUEST['e']) : '');
21 19
 
22 20
 $tpl->assign('errorEMail', false);
23 21
 $tpl->assign('errorCode', false);
Please login to merge, or discard this patch.
htdocs/lang/de/ocstyle/rating.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
  ****************************************************************************/
19 19
 
20
-$rating_tpl =    '<tr>
20
+$rating_tpl = '<tr>
21 21
                 <td valign="top">' . t('Recommendations:') . '</td>
22 22
                 <td valign="top">
23 23
                     {rating_msg}
Please login to merge, or discard this patch.
htdocs/lang/de/expressions.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
 //common vars
23 23
 $dateformat = $opt['locale'][$locale]['format']['date'];
24
-$reset = t('Reset');  // obsolete
24
+$reset = t('Reset'); // obsolete
25 25
 $yes = t('Yes');
26 26
 $no = t('No');
27 27
 
Please login to merge, or discard this patch.
htdocs/util2/stats/rank.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
               LIMIT 100');
20 20
 while ($r = sql_fetch_assoc($rs)) {
21 21
     echo $n . ' ' . $r['username'] . ': ' . $r['found'] . "\n";
22
-    $n ++;
22
+    $n++;
23 23
 }
24 24
 sql_free_result($rs);
Please login to merge, or discard this patch.
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/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.