Passed
Branch master (31be8b)
by Gino
03:04
created
class/form/TDMCreateFormRadio.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         }
64 64
         if (!empty($this->columns)) {
65 65
             if ($span = $i % $this->columns) {
66
-                $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>';
66
+                $ret .= '<td colspan="'.($this->columns-$span).'"></td></tr>';
67 67
             }
68 68
             $ret .= '</table>';
69 69
         }
Please login to merge, or discard this patch.
class/form/simpleform.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 $ret .= $ele->render();
47 47
             }
48 48
         }
49
-        $ret .=  NWLINE.'</form>';
49
+        $ret .= NWLINE.'</form>';
50 50
 
51 51
         return $ret;
52 52
     }
Please login to merge, or discard this patch.
class/SplClassLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
             $namespace = '';
142 142
             if (false !== ($lastNsPos = strripos($className, $this->_namespaceSeparator))) {
143 143
                 $namespace = substr($className, 0, $lastNsPos);
144
-                $className = substr($className, $lastNsPos + 1);
144
+                $className = substr($className, $lastNsPos+1);
145 145
                 $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR;
146 146
             }
147 147
             $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).$this->_fileExtension;
Please login to merge, or discard this patch.
class/modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -415,7 +415,7 @@
 block discarded – undo
415 415
         $imageIcon = imagecreatefrompng($iconFile);
416 416
         // Write text
417 417
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
418
-        $spaceBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
418
+        $spaceBorder = (92-strlen($moduleDirname) * 7.5) / 2;
419 419
         imagefttext($imageModule, 8.5, 0, $spaceBorder, 45, $textColor, $font, ucfirst($moduleDirname), array());
420 420
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
421 421
         $logoImg = '/'.$moduleDirname.'_logo.png';
Please login to merge, or discard this patch.
class/logoGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 
135 135
         // Write text
136 136
         $textColor = imagecolorallocate($imageModule, 0, 0, 0);
137
-        $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2;
137
+        $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2;
138 138
         imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), array());
139 139
 
140 140
         imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32);
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $fieldName = $fields[$f]->getVar('field_name');
96 96
             $stuFieldName = $language.strtoupper($fieldName);
97 97
             $lang = $this->htmlcode->getSmartyConst($language, $stuFieldName);
98
-            $th    .= $this->htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL;
98
+            $th .= $this->htmlcode->getHtmlTableHead($lang, 'center').PHP_EOL;
99 99
         }
100 100
         $tr = $this->htmlcode->getHtmlTableRow($th, 'head').PHP_EOL;
101 101
 
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserBreadcrumbs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $glyph = $this->htmlcode->getHtmlTag('i', array('class' => 'glyphicon glyphicon-home'));
99 99
         $anchor = $this->htmlcode->getHtmlAnchor('<{xoAppUrl index.php}>', $glyph, 'home');
100 100
         $into = $this->htmlcode->getHtmlTag('li', array(), $anchor).PHP_EOL;
101
-        $into     .= $this->htmlcode->getSmartyForeach('itm', 'xoBreadcrumbs', $ifelse, 'bcloop');
101
+        $into .= $this->htmlcode->getSmartyForeach('itm', 'xoBreadcrumbs', $ifelse, 'bcloop');
102 102
 
103 103
         $content = $this->htmlcode->getHtmlTag('ul', array('class' => 'breadcrumb'), $into);
104 104
 
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserCategories.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
 
229 229
         $incl = $this->htmlcode->getSmartyIncludeFileListForeach($moduleDirname, $tableName, $tableSoleName).PHP_EOL;
230 230
         $html = $this->htmlcode->getHtmlEmpty('<br />').PHP_EOL;
231
-        $incl     .= $this->htmlcode->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL;
231
+        $incl .= $this->htmlcode->getSmartyConditions($tableSoleName.'.count', ' is div by ', '$numb_col', $html).PHP_EOL;
232 232
         $const = $this->htmlcode->getSmartyConst($language, $stuTableName.'_TITLE');
233 233
         $div = $this->htmlcode->getHtmlDiv($const, 'panel-heading').PHP_EOL;
234 234
         $cont = $this->htmlcode->getHtmlDiv($incl, 'panel panel-body').PHP_EOL;
Please login to merge, or discard this patch.
class/files/include/IncludeSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $nb_fieldSearch = count($fieldSearch);
96 96
             $sql .= '(';
97 97
             for ($i = 0; $i < $nb_fieldSearch; ++$i) {
98
-                if ($i != $nb_fieldSearch - 1) {
98
+                if ($i != $nb_fieldSearch-1) {
99 99
                     $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray['.$options.']% OR ';
100 100
                 } else {
101 101
                     $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray[0]%';
Please login to merge, or discard this patch.