Completed
Pull Request — master (#133)
by Gino
03:09
created
class/files/admin/AdminMenu.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         $ret = $this->getAdminMenuArray($dirname);
119 119
         $mod = array('$moduleHandler' => "xoops_gethandler('module')",
120 120
                     '$xoopsModule' => 'XoopsModule::getByDirname($dirname)',
121
-                    '$moduleInfo' => "\$moduleHandler->get(\$xoopsModule->getVar('mid'))", );
121
+                    '$moduleInfo' => "\$moduleHandler->get(\$xoopsModule->getVar('mid'))",);
122 122
         $ret .= $this->getAdminMenuArray($mod, false, true);
123 123
         $sys = array('$sysPathIcon32' => "\$moduleInfo->getInfo('sysicons32')");
124 124
         $ret .= $this->getAdminMenuArray($sys);
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
     *  @param string $filename
63 63
     */
64 64
     /**
65
-     * @param $module
66
-     * @param $filename
65
+     * @param string $module
66
+     * @param string $filename
67 67
      */
68 68
     public function write($module, $filename)
69 69
     {
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
     *  @param integer $menu
126 126
     */
127 127
     /**
128
-     * @param $language
129
-     * @param $menu
128
+     * @param string $language
129
+     * @param integer $menu
130 130
      *
131 131
      * @return string
132 132
      */
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     *  @param null
214 214
     */
215 215
     /**
216
-     * @return bool|string
216
+     * @return null|string
217 217
      */
218 218
     public function render()
219 219
     {
Please login to merge, or discard this patch.
class/files/admin/AdminPages.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
                         'new' => array($new),
377 377
                         'save' => array($save),
378 378
                         'edit' => array($edit),
379
-                        'delete' => array($delete), );
379
+                        'delete' => array($delete),);
380 380
         $content .= $this->getAdminPagesSwitch($cases);
381 381
         $content .= $this->getInclude('footer');
382 382
         //
Please login to merge, or discard this patch.
Doc Comments   +30 added lines patch added patch discarded remove patch
@@ -58,6 +58,11 @@  discard block
 block discarded – undo
58 58
     *  @param $module
59 59
     *  @param $table
60 60
     */
61
+
62
+    /**
63
+     * @param string $module
64
+     * @param string $filename
65
+     */
61 66
     public function write($module, $table, $filename)
62 67
     {
63 68
         $this->setModule($module);
@@ -112,6 +117,10 @@  discard block
 block discarded – undo
112 117
     *  @param $fieldMain
113 118
     *  @return string
114 119
     */
120
+
121
+    /**
122
+     * @param string $language
123
+     */
115 124
     private function getAdminPagesList($moduleDirname, $table, $language, $fields, $fieldId, $fieldInForm, $fieldMain, $t = '')
116 125
     {
117 126
         $pc = TDMCreatePhpCode::getInstance();
@@ -164,6 +173,10 @@  discard block
 block discarded – undo
164 173
     *  @param $language
165 174
     *  @return string
166 175
     */
176
+
177
+    /**
178
+     * @param string $language
179
+     */
167 180
     private function getAdminPagesNew($moduleDirname, $tableName, $fieldInForm, $language, $t = '')
168 181
     {
169 182
         $pc = TDMCreatePhpCode::getInstance();
@@ -197,6 +210,11 @@  discard block
 block discarded – undo
197 210
     *
198 211
     *  @return string
199 212
     */
213
+
214
+    /**
215
+     * @param string $ccFieldId
216
+     * @param string $newFieldId
217
+     */
200 218
     private function getPermissionsSave($moduleDirname, $fieldId, $ccFieldId, $newFieldId, $perm = 'view')
201 219
     {
202 220
         $pc = TDMCreatePhpCode::getInstance();
@@ -221,6 +239,10 @@  discard block
 block discarded – undo
221 239
     *  @param $fieldMain
222 240
     *  @return string
223 241
     */
242
+
243
+    /**
244
+     * @param string $language
245
+     */
224 246
     private function getAdminPagesSave($moduleDirname, $tableName, $tableCategory, $language, $fields, $fieldId, $fieldMain, $t = '')
225 247
     {
226 248
         $pc = TDMCreatePhpCode::getInstance();
@@ -311,6 +333,10 @@  discard block
 block discarded – undo
311 333
     *  @param $fieldInForm
312 334
     *  @return string
313 335
     */
336
+
337
+    /**
338
+     * @param string $language
339
+     */
314 340
     private function getAdminPagesEdit($moduleDirname, $table, $language, $fieldId, $fieldInForm, $t = '')
315 341
     {
316 342
         $pc = TDMCreatePhpCode::getInstance();
@@ -351,6 +377,10 @@  discard block
 block discarded – undo
351 377
     *  @param $fieldMain
352 378
     *  @return string
353 379
     */
380
+
381
+    /**
382
+     * @param string $language
383
+     */
354 384
     private function getAdminPagesDelete($tableName, $language, $fieldId, $fieldMain, $t = '')
355 385
     {
356 386
         $axc = AdminXoopsCode::getInstance();
Please login to merge, or discard this patch.
class/files/user/UserSearch.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * @param $module
121 121
      * @param $tableName
122
-     * @param $language
122
+     * @param string $language
123 123
      *
124 124
      * @return string
125 125
      */
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      *
139 139
      * @param $moduleDirname
140 140
      * @param $tableName
141
-     * @param $language
141
+     * @param string $language
142 142
      *
143 143
      * @return string
144 144
      */
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     *  @param null
167 167
     */
168 168
     /**
169
-     * @return bool|string
169
+     * @return null|string
170 170
      */
171 171
     public function render()
172 172
     {
Please login to merge, or discard this patch.
class/fieldattributes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
  * @version         $Id: 1.91 fieldattributes.php 13027 2015-02-14 12:18:10Z timgno $
23 23
  */
24 24
 
25
- /*
25
+    /*
26 26
 *  @Class TDMCreateFieldattributes
27 27
 *  @extends XoopsObject
28 28
 */
Please login to merge, or discard this patch.
class/files/language/LanguageAdmin.php 1 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/files/TDMCreateFile.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
      * @param $subdir
122 122
      * @param $fileName
123 123
      * @param $content
124
-     * @param $created
125
-     * @param $notCreated
124
+     * @param string $created
125
+     * @param string $notCreated
126 126
      * @param $mode
127 127
      */
128 128
     public function create($moduleDirname, $subdir = null, $fileName = null, $content = '', $created = null, $notCreated = null, $mode = 'w+')
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     *  @param string $subdir
185 185
     */
186 186
     /**
187
-     * @param $subdir
187
+     * @param string $subdir
188 188
      */
189 189
     private function setSubDir($subdir)
190 190
     {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     *  @param string $content
230 230
     */
231 231
     /**
232
-     * @param $content
232
+     * @param string $content
233 233
      */
234 234
     private function setContent($content)
235 235
     {
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     *  @param string $mode
317 317
     */
318 318
     /**
319
-     * @param $mode
319
+     * @param string $mode
320 320
      */
321 321
     private function setMode($mode)
322 322
     {
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
      *  @param $string
432 432
      */
433 433
     /**
434
-     * @param $string
434
+     * @param string $string
435 435
      *
436 436
      * @return string
437 437
      */
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
      *  @param $string
446 446
      */
447 447
     /**
448
-     * @param $string
448
+     * @param string $string
449 449
      *
450 450
      * @return string
451 451
      */
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
     /**
525 525
      * @private function getHeaderComment
526 526
      *
527
-     * @param $comment
527
+     * @param string $comment
528 528
      *
529 529
      * @return string
530 530
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         if (strrpos($path, '\\')) {
261 261
             $str = strrpos($path, '\\');
262 262
             if ($str !== false) {
263
-                return substr($path, $str + 1, strlen($path));
263
+                return substr($path, $str+1, strlen($path));
264 264
             } else {
265 265
                 return substr($path, $str, strlen($path));
266 266
             }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
         if (strpos($string, '_')) {
389 389
             $str = strpos($string, '_');
390 390
             if ($str !== false) {
391
-                $ret = substr($string, $str + 1, strlen($string));
391
+                $ret = substr($string, $str+1, strlen($string));
392 392
 
393 393
                 return $ret;
394 394
             }
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
         $ret .= "*/\n";
588 588
         $copyright = array($name => 'module for xoops', '' => '', '@copyright  ' => '   module for xoops', '@license   ' => "    {$license}", '@package   ' => "    {$dirname}",
589 589
                             '@since    ' => "     {$since}", '@min_xoops   ' => "  {$minXoops}", '@author    ' => "    {$author} - Email:<{$authorMail}> - Website:<{$authorWebsiteUrl}>",
590
-                            '@version    ' => "   \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$", );
590
+                            '@version    ' => "   \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$",);
591 591
         $ret .= TDMCreatePhpCode::getInstance()->getPhpCodeCommentMultiLine($copyright);
592 592
 
593 593
         return $ret;
Please login to merge, or discard this patch.
class/files/TDMCreateHtmlCode.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         return $ret;
97 97
     }
98 98
 
99
-     /*
99
+        /*
100 100
     *  @private function setAttributes
101 101
     *  @param array $attributes
102 102
     */
Please login to merge, or discard this patch.
class/files/TDMCreateSmartyCode.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         return $ret;
97 97
     }
98 98
 
99
-     /*
99
+        /*
100 100
     *  @private function setAttributes
101 101
     *  @param array $attributes
102 102
     */
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     *  @param null
44 44
     */
45 45
     /**
46
-     * @return TDMCreateSmartySmartyCodes
46
+     * @return TDMCreateSmartyCode
47 47
      */
48 48
     public static function &getInstance()
49 49
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * @param string $operator
257 257
      * @param string $type
258 258
      * @param string $contentIf
259
-     * @param mixed  $contentElse
259
+     * @param string  $contentElse
260 260
      * @param bool   $count
261 261
      *
262 262
      * @return string
Please login to merge, or discard this patch.
class/logo.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.