Passed
Branch timgno (bce0cd)
by Gino
04:18
created
class/modules.php 2 patches
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      * @param $logoIcon
392 392
      * @param $moduleDirname
393 393
      *
394
-     * @return bool|string
394
+     * @return false|string
395 395
      */
396 396
     private static function createLogo($logoIcon, $moduleDirname)
397 397
     {
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
      * Get Defined Language.
475 475
      */
476 476
     /**
477
-     * @param $lang
477
+     * @param string $lang
478 478
      *
479 479
      * @return string
480 480
      */
@@ -587,6 +587,10 @@  discard block
 block discarded – undo
587 587
 
588 588
     /**
589 589
      * Get Modules Criteria.
590
+     * @param integer $start
591
+     * @param integer $limit
592
+     * @param string $sort
593
+     * @param string $order
590 594
      */
591 595
     private function getModulesCriteria($criteriaModules, $start, $limit, $sort, $order)
592 596
     {
Please login to merge, or discard this 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/morefiles.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -275,6 +275,10 @@
 block discarded – undo
275 275
 
276 276
     /**
277 277
      * Get MoreFiles Criteria.
278
+     * @param integer $start
279
+     * @param integer $limit
280
+     * @param string $sort
281
+     * @param string $order
278 282
      */
279 283
     private function getMoreFilesCriteria($criteriaMoreFiles, $start, $limit, $sort, $order)
280 284
     {
Please login to merge, or discard this patch.
class/tables.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      * Get Defined Language.
311 311
      */
312 312
     /**
313
-     * @param $lang
313
+     * @param string $lang
314 314
      *
315 315
      * @return string
316 316
      */
@@ -435,6 +435,10 @@  discard block
 block discarded – undo
435 435
 
436 436
     /**
437 437
      * Get Tables Criteria.
438
+     * @param integer $start
439
+     * @param integer $limit
440
+     * @param string $sort
441
+     * @param string $order
438 442
      */
439 443
     private function getTablesCriteria($criteriaTables, $start, $limit, $sort, $order)
440 444
     {
Please login to merge, or discard this patch.
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 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * XOOPS simple form.
4
- *
5
- * You may not change or alter any portion of this comment or credits
6
- * of supporting developers from this source code or any supporting source code
7
- * which is considered copyrighted (c) material of the original comment or credit authors.
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
- *
12
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
13
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14
- *
15
- * @since           2.0.0
16
- *
17
- * @author          Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
18
- *
19
- * @version         $Id: simpleform.php 12562 2014-04-03 10:57:12Z timgno $
20
- */
3
+     * XOOPS simple form.
4
+     *
5
+     * You may not change or alter any portion of this comment or credits
6
+     * of supporting developers from this source code or any supporting source code
7
+     * which is considered copyrighted (c) material of the original comment or credit authors.
8
+     * This program is distributed in the hope that it will be useful,
9
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
+     *
12
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
13
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14
+     *
15
+     * @since           2.0.0
16
+     *
17
+     * @author          Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
18
+     *
19
+     * @version         $Id: simpleform.php 12562 2014-04-03 10:57:12Z timgno $
20
+     */
21 21
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
22 22
 
23 23
 /*
Please login to merge, or discard this 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/form/themeform.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 10
  */
11 11
 /**
12
- * tdmcreate module.
13
- *
14
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
- *
17
- * @since           2.5.5
18
- *
19
- * @author          Txmod Xoops <[email protected]>
20
- *
21
- * @version         $Id: 1.59 themeform.php 11297 2013-03-24 10:58:10Z timgno $
22
- */
12
+     * tdmcreate module.
13
+     *
14
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
+     *
17
+     * @since           2.5.5
18
+     *
19
+     * @author          Txmod Xoops <[email protected]>
20
+     *
21
+     * @version         $Id: 1.59 themeform.php 11297 2013-03-24 10:58:10Z timgno $
22
+     */
23 23
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
24 24
 
25 25
 xoops_load('XoopsFormLoader');
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/settings.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,8 +295,8 @@
 block discarded – undo
295 295
     }
296 296
 }
297 297
 /**
298
- * Class TDMCreateSettingsHandler.
299
- */
298
+     * Class TDMCreateSettingsHandler.
299
+     */
300 300
 class TDMCreateSettingsHandler extends XoopsPersistableObjectHandler
301 301
 {
302 302
     /**
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      * Get Defined Language.
311 311
      */
312 312
     /**
313
-     * @param $lang
313
+     * @param string $lang
314 314
      *
315 315
      * @return string
316 316
      */
@@ -435,6 +435,10 @@  discard block
 block discarded – undo
435 435
 
436 436
     /**
437 437
      * Get Tables Criteria.
438
+     * @param integer $start
439
+     * @param integer $limit
440
+     * @param string $sort
441
+     * @param string $order
438 442
      */
439 443
     private function getTablesCriteria($criteriaTables, $start, $limit, $sort, $order)
440 444
     {
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserCategories.php 2 patches
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.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     */
101 101
     /**
102 102
      * @param $moduleDirname
103
-     * @param $language
103
+     * @param string $language
104 104
      *
105 105
      * @return string
106 106
      */
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     *  @param string $filename
146 146
     */
147 147
     /**
148
-     * @param $filename
148
+     * @param string $filename
149 149
      *
150 150
      * @return bool|string
151 151
      */
Please login to merge, or discard this patch.