Passed
Push — master ( dc1f79...43726e )
by Goffy
02:26
created
class/files/TDMCreateFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         if (strrpos($path, '\\')) {
236 236
             $str = strrpos($path, '\\');
237 237
             if (false !== $str) {
238
-                return substr($path, $str + 1, strlen($path));
238
+                return substr($path, $str+1, strlen($path));
239 239
             } else {
240 240
                 return substr($path, $str, strlen($path));
241 241
             }
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
         if (strpos($string, '_')) {
344 344
             $str = strpos($string, '_');
345 345
             if (false !== $str) {
346
-                $ret = substr($string, $str + 1, strlen($string));
346
+                $ret = substr($string, $str+1, strlen($string));
347 347
 
348 348
                 return $ret;
349 349
             }
Please login to merge, or discard this patch.
class/files/sql/SqlFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
         }
309 309
         // ================= COMMA ================= //
310 310
         for ($i = 0; $i < $j; ++$i) {
311
-            if ($i != $j - 1) {
311
+            if ($i != $j-1) {
312 312
                 $row[] = $comma[$i].',';
313 313
             } else {
314 314
                 $row[] = $comma[$i];
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
         $ret = null;
423 423
         // Comma issue
424 424
         for ($i = 1; $i <= $index; ++$i) {
425
-            if ($i != $index - 1) {
425
+            if ($i != $index-1) {
426 426
                 $ret = $this->getComma(isset($comma[$i]), ',')."\n";
427 427
             } else {
428 428
                 $ret = $this->getComma(isset($comma[$i]))."\n";
Please login to merge, or discard this patch.
class/files/user/UserRss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
             if (strpos($fieldName, '_')) {
100 100
                 $str = strpos($fieldName, '_');
101 101
                 if (false !== $str) {
102
-                    $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
102
+                    $rpFieldName = substr($fieldName, $str+1, strlen($fieldName));
103 103
                 }
104 104
             }
105 105
             $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_'));
Please login to merge, or discard this patch.
class/files/user/UserPrint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             if (strpos($fieldName, '_')) {
101 101
                 $str = strpos($fieldName, '_');
102 102
                 if (false !== $str) {
103
-                    $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName));
103
+                    $rpFieldName = substr($fieldName, $str+1, strlen($fieldName));
104 104
                 }
105 105
             }
106 106
             if ((0 == $f) && (1 == $this->table->getVar('table_autoincrement'))) {
Please login to merge, or discard this patch.
class/files/user/UserXoopsCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         $stuModuleDirname = strtoupper($moduleDirname);
139 139
         $ret = $pCodeHeaderFile->getPhpCodeCommentLine('Breadcrumbs');
140 140
         $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs', null, false, '');
141
-        $titleLink = ["'title'" => $language . 'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"];
141
+        $titleLink = ["'title'" => $language.'TITLE', "'link'" => "{$stuModuleDirname}_URL . '/'"];
142 142
         $ret .= $pCodeHeaderFile->getPhpCodeArray('xoBreadcrumbs[]', $titleLink, false, '');
143 143
 
144 144
         return $ret;
Please login to merge, or discard this patch.
class/files/TDMCreatePhpCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
     */
707 707
     public function getPhpCodeHtmlentities($entitiesVar, $entitiesQuote = false)
708 708
     {
709
-        $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar . ', ' . $entitiesQuote : $entitiesVar;
709
+        $entitiesVar = (false !== $entitiesQuote) ? $entitiesVar.', '.$entitiesQuote : $entitiesVar;
710 710
         $entities = "htmlentities({$entitiesVar})";
711 711
 
712 712
         return $entities;
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
     */
721 721
     public function getPhpCodeHtmlspecialchars($specialVar, $specialQuote = false)
722 722
     {
723
-        $specialVar = (false !== $specialQuote) ? $specialVar . ', ' . $specialQuote : $specialVar;
723
+        $specialVar = (false !== $specialQuote) ? $specialVar.', '.$specialQuote : $specialVar;
724 724
         $specialchars = "htmlspecialchars({$specialVar})";
725 725
 
726 726
         return $specialchars;
Please login to merge, or discard this patch.
class/files/classes/ClassXoopsCode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
      */
72 72
     public function getClassCriteria($var, $param1, $param2 = '', $param3 = '', $isParam = false, $t = '')
73 73
     {
74
-        $params = ('' != $param2) ? ', ' . $param2 : '';
75
-        $params .= ('' != $param3) ? ', ' . $param3 : '';
74
+        $params = ('' != $param2) ? ', '.$param2 : '';
75
+        $params .= ('' != $param3) ? ', '.$param3 : '';
76 76
 
77 77
         if (false === $isParam) {
78 78
             $ret = "{$t}\${$var} = new Criteria( {$param1}{$params} );\n";
Please login to merge, or discard this patch.
include/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $tplids[] = $tplid;
63 63
     }
64 64
     if (count($tplids) > 0) {
65
-        $tplfileHandler =  xoops_getHandler('tplfile');
65
+        $tplfileHandler = xoops_getHandler('tplfile');
66 66
         $duplicate_files = $tplfileHandler->getObjects(
67 67
             new Criteria('tpl_id', '('.implode(',', $tplids).')', 'IN')
68 68
         );
Please login to merge, or discard this patch.
class/files/assets/css/CssSelectors.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,14 +67,14 @@
 block discarded – undo
67 67
     {
68 68
         $ret = '';
69 69
         if (is_array($selector)) {
70
-            $ret .= $t. implode("\n", $selector) . ' {';
70
+            $ret .= $t.implode("\n", $selector).' {';
71 71
         } else {
72
-            $ret .= $selector . ' {';
72
+            $ret .= $selector.' {';
73 73
         }
74 74
         if (is_array($content)) {
75
-            $ret .= $t. implode("\n", $content) . ';';
75
+            $ret .= $t.implode("\n", $content).';';
76 76
         } else {
77
-            $ret .= $content . ';';
77
+            $ret .= $content.';';
78 78
         }
79 79
         $ret = '}';
80 80
         
Please login to merge, or discard this patch.