Completed
Pull Request — master (#134)
by Michael
04:22 queued 12s
created
class/helper.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     *  @param mixed $debug
59 59
     */
60 60
     /**
61
-     * @param $debug
61
+     * @param boolean $debug
62 62
      */
63 63
     public function __construct($debug)
64 64
     {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     *  @param string $name
107 107
     */
108 108
     /**
109
-     * @param null $name
109
+     * @param string $name
110 110
      *
111 111
      * @return null|string
112 112
      */
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @param null $name
140 140
      * @param null $value
141 141
      *
142
-     * @return mixed
142
+     * @return string
143 143
      */
144 144
     public function setConfig($name = null, $value = null)
145 145
     {
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
     *  @param string $name
158 158
     */
159 159
     /**
160
-     * @param $name
160
+     * @param string $name
161 161
      *
162
-     * @return mixed
162
+     * @return string
163 163
      */
164 164
     public function &getHandler($name)
165 165
     {
Please login to merge, or discard this patch.
class/logoGenerator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      * @param $logoIcon
101 101
      * @param $moduleDirname
102 102
      *
103
-     * @return bool|string
103
+     * @return false|string
104 104
      */
105 105
     public static function createLogo($logoIcon, $moduleDirname)
106 106
     {
Please login to merge, or discard this 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/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/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 2 patches
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.
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      * @param $logoIcon
376 376
      * @param $moduleDirname
377 377
      *
378
-     * @return bool|string
378
+     * @return false|string
379 379
      */
380 380
     private static function createLogo($logoIcon, $moduleDirname)
381 381
     {
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 
457 457
     /**
458 458
      * Get Defined Language.
459
-     * @param $lang
459
+     * @param string $lang
460 460
      *
461 461
      * @return string
462 462
      */
@@ -574,10 +574,10 @@  discard block
 block discarded – undo
574 574
     /**
575 575
      * Get Modules Criteria.
576 576
      * @param $criteriaModules
577
-     * @param $start
578
-     * @param $limit
579
-     * @param $sort
580
-     * @param $order
577
+     * @param integer $start
578
+     * @param integer $limit
579
+     * @param string $sort
580
+     * @param string $order
581 581
      * @return
582 582
      */
583 583
     private function getModulesCriteria($criteriaModules, $start, $limit, $sort, $order)
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.
class/files/user/UserRss.php 2 patches
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 ($str !== false) {
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
     *  @param null
254 254
     */
255 255
     /**
256
-     * @return bool|string
256
+     * @return null|string
257 257
      */
258 258
     public function render()
259 259
     {
Please login to merge, or discard this patch.
class/autoload.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
 // Autoload Function
29 29
 ini_set('display_errors', 1);
30
-error_reporting(E_ALL | E_STRICT);
30
+error_reporting(E_ALL|E_STRICT);
31 31
 
32 32
 if (!function_exists('application_autoloader')) {
33 33
     function application_autoloader($class)
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                                  'set_release_info' => $_POST['set_release_info'],
102 102
                                  'set_release_file' => $_POST['set_release_file'],
103 103
                                  'set_manual' => $_POST['set_manual'],
104
-                                 'set_manual_file' => $_POST['set_manual_file'], ));
104
+                                 'set_manual_file' => $_POST['set_manual_file'],));
105 105
         //Form set_image
106 106
         $settingsObj->setVar('set_image', $_POST['set_image']);
107 107
         //Form module save
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                                  'set_release' => $_POST['set_release'],
116 116
                                  'set_status' => $_POST['set_status'],
117 117
                                  'set_donations' => $_POST['set_donations'],
118
-                                 'set_subversion' => $_POST['set_subversion'], )
118
+                                 'set_subversion' => $_POST['set_subversion'],)
119 119
         );
120 120
         $settingOption = XoopsRequest::getArray('setting_option', array());
121 121
         $settingsObj->setVar('set_admin', in_array('admin', $settingOption));
Please login to merge, or discard this patch.