Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
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 1 patch
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.
admin/modules.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -90,29 +90,29 @@  discard block
 block discarded – undo
90 90
         $moduleDirname = preg_replace('/[^a-zA-Z0-9]\s+/', '', strtolower($_POST['mod_dirname']));
91 91
         //Form module save
92 92
         $modulesObj->setVars(array(
93
-                                 'mod_name' => $_POST['mod_name'],
94
-                                 'mod_dirname' => $moduleDirname,
95
-                                 'mod_version' => $_POST['mod_version'],
96
-                                 'mod_since' => $_POST['mod_since'],
97
-                                 'mod_min_php' => $_POST['mod_min_php'],
98
-                                 'mod_min_xoops' => $_POST['mod_min_xoops'],
99
-                                 'mod_min_admin' => $_POST['mod_min_admin'],
100
-                                 'mod_min_mysql' => $_POST['mod_min_mysql'],
101
-                                 'mod_description' => $_POST['mod_description'],
102
-                                 'mod_author' => $_POST['mod_author'],
103
-                                 'mod_author_mail' => $_POST['mod_author_mail'],
104
-                                 'mod_author_website_url' => $_POST['mod_author_website_url'],
105
-                                 'mod_author_website_name' => $_POST['mod_author_website_name'],
106
-                                 'mod_credits' => $_POST['mod_credits'],
107
-                                 'mod_license' => $_POST['mod_license'],
108
-                                 'mod_release_info' => $_POST['mod_release_info'],
109
-                                 'mod_release_file' => $_POST['mod_release_file'],
110
-                                 'mod_manual' => $_POST['mod_manual'],
111
-                                 'mod_manual_file' => $_POST['mod_manual_file'], ));
93
+                                    'mod_name' => $_POST['mod_name'],
94
+                                    'mod_dirname' => $moduleDirname,
95
+                                    'mod_version' => $_POST['mod_version'],
96
+                                    'mod_since' => $_POST['mod_since'],
97
+                                    'mod_min_php' => $_POST['mod_min_php'],
98
+                                    'mod_min_xoops' => $_POST['mod_min_xoops'],
99
+                                    'mod_min_admin' => $_POST['mod_min_admin'],
100
+                                    'mod_min_mysql' => $_POST['mod_min_mysql'],
101
+                                    'mod_description' => $_POST['mod_description'],
102
+                                    'mod_author' => $_POST['mod_author'],
103
+                                    'mod_author_mail' => $_POST['mod_author_mail'],
104
+                                    'mod_author_website_url' => $_POST['mod_author_website_url'],
105
+                                    'mod_author_website_name' => $_POST['mod_author_website_name'],
106
+                                    'mod_credits' => $_POST['mod_credits'],
107
+                                    'mod_license' => $_POST['mod_license'],
108
+                                    'mod_release_info' => $_POST['mod_release_info'],
109
+                                    'mod_release_file' => $_POST['mod_release_file'],
110
+                                    'mod_manual' => $_POST['mod_manual'],
111
+                                    'mod_manual_file' => $_POST['mod_manual_file'], ));
112 112
         //Form mod_image
113 113
         include_once XOOPS_ROOT_PATH.'/class/uploader.php';
114 114
         $uploader = new XoopsMediaUploader(TDMC_UPLOAD_IMGMOD_PATH, $tdmcreate->getConfig('mimetypes'),
115
-                                           $tdmcreate->getConfig('maxsize'), null, null);
115
+                                            $tdmcreate->getConfig('maxsize'), null, null);
116 116
         if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
117 117
             $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
118 118
             if (!$uploader->upload()) {
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
         }
127 127
         //Form module save
128 128
         $modulesObj->setVars(array(
129
-                                 'mod_demo_site_url' => $_POST['mod_demo_site_url'],
130
-                                 'mod_demo_site_name' => $_POST['mod_demo_site_name'],
131
-                                 'mod_support_url' => $_POST['mod_support_url'],
132
-                                 'mod_support_name' => $_POST['mod_support_name'],
133
-                                 'mod_website_url' => $_POST['mod_website_url'],
134
-                                 'mod_website_name' => $_POST['mod_website_name'],
135
-                                 'mod_release' => $_POST['mod_release'],
136
-                                 'mod_status' => $_POST['mod_status'],
137
-                                 'mod_donations' => $_POST['mod_donations'],
138
-                                 'mod_subversion' => $_POST['mod_subversion'], )
129
+                                    'mod_demo_site_url' => $_POST['mod_demo_site_url'],
130
+                                    'mod_demo_site_name' => $_POST['mod_demo_site_name'],
131
+                                    'mod_support_url' => $_POST['mod_support_url'],
132
+                                    'mod_support_name' => $_POST['mod_support_name'],
133
+                                    'mod_website_url' => $_POST['mod_website_url'],
134
+                                    'mod_website_name' => $_POST['mod_website_name'],
135
+                                    'mod_release' => $_POST['mod_release'],
136
+                                    'mod_status' => $_POST['mod_status'],
137
+                                    'mod_donations' => $_POST['mod_donations'],
138
+                                    'mod_subversion' => $_POST['mod_subversion'], )
139 139
         );
140 140
         $moduleOption = XoopsRequest::getArray('module_option', array());
141 141
         $modulesObj->setVar('mod_admin', in_array('admin', $moduleOption));
Please login to merge, or discard this patch.
admin/settings.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -83,39 +83,39 @@
 block discarded – undo
83 83
         $setModuleDirname = preg_replace('/[^a-zA-Z0-9]\s+/', '', strtolower($_POST['set_dirname']));
84 84
         //Form module save
85 85
         $settingsObj->setVars(array(
86
-                                 'set_name' => $_POST['set_name'],
87
-                                 'set_dirname' => $setModuleDirname,
88
-                                 'set_version' => $_POST['set_version'],
89
-                                 'set_since' => $_POST['set_since'],
90
-                                 'set_min_php' => $_POST['set_min_php'],
91
-                                 'set_min_xoops' => $_POST['set_min_xoops'],
92
-                                 'set_min_admin' => $_POST['set_min_admin'],
93
-                                 'set_min_mysql' => $_POST['set_min_mysql'],
94
-                                 'set_description' => $_POST['set_description'],
95
-                                 'set_author' => $_POST['set_author'],
96
-                                 'set_author_mail' => $_POST['set_author_mail'],
97
-                                 'set_author_website_url' => $_POST['set_author_website_url'],
98
-                                 'set_author_website_name' => $_POST['set_author_website_name'],
99
-                                 'set_credits' => $_POST['set_credits'],
100
-                                 'set_license' => $_POST['set_license'],
101
-                                 'set_release_info' => $_POST['set_release_info'],
102
-                                 'set_release_file' => $_POST['set_release_file'],
103
-                                 'set_manual' => $_POST['set_manual'],
104
-                                 'set_manual_file' => $_POST['set_manual_file'], ));
86
+                                    'set_name' => $_POST['set_name'],
87
+                                    'set_dirname' => $setModuleDirname,
88
+                                    'set_version' => $_POST['set_version'],
89
+                                    'set_since' => $_POST['set_since'],
90
+                                    'set_min_php' => $_POST['set_min_php'],
91
+                                    'set_min_xoops' => $_POST['set_min_xoops'],
92
+                                    'set_min_admin' => $_POST['set_min_admin'],
93
+                                    'set_min_mysql' => $_POST['set_min_mysql'],
94
+                                    'set_description' => $_POST['set_description'],
95
+                                    'set_author' => $_POST['set_author'],
96
+                                    'set_author_mail' => $_POST['set_author_mail'],
97
+                                    'set_author_website_url' => $_POST['set_author_website_url'],
98
+                                    'set_author_website_name' => $_POST['set_author_website_name'],
99
+                                    'set_credits' => $_POST['set_credits'],
100
+                                    'set_license' => $_POST['set_license'],
101
+                                    'set_release_info' => $_POST['set_release_info'],
102
+                                    'set_release_file' => $_POST['set_release_file'],
103
+                                    'set_manual' => $_POST['set_manual'],
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
108 108
         $settingsObj->setVars(array(
109
-                                 'set_demo_site_url' => $_POST['set_demo_site_url'],
110
-                                 'set_demo_site_name' => $_POST['set_demo_site_name'],
111
-                                 'set_support_url' => $_POST['set_support_url'],
112
-                                 'set_support_name' => $_POST['set_support_name'],
113
-                                 'set_website_url' => $_POST['set_website_url'],
114
-                                 'set_website_name' => $_POST['set_website_name'],
115
-                                 'set_release' => $_POST['set_release'],
116
-                                 'set_status' => $_POST['set_status'],
117
-                                 'set_donations' => $_POST['set_donations'],
118
-                                 'set_subversion' => $_POST['set_subversion'], )
109
+                                    'set_demo_site_url' => $_POST['set_demo_site_url'],
110
+                                    'set_demo_site_name' => $_POST['set_demo_site_name'],
111
+                                    'set_support_url' => $_POST['set_support_url'],
112
+                                    'set_support_name' => $_POST['set_support_name'],
113
+                                    'set_website_url' => $_POST['set_website_url'],
114
+                                    'set_website_name' => $_POST['set_website_name'],
115
+                                    'set_release' => $_POST['set_release'],
116
+                                    'set_status' => $_POST['set_status'],
117
+                                    'set_donations' => $_POST['set_donations'],
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.
admin/addfiles.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
         }
92 92
         // Form file save
93 93
         $addfilesObj->setVars(array(
94
-                                 'file_mid' => $_POST['file_mid'],
95
-                                 'file_name' => $_POST['file_name'],
96
-                                 'file_extension' => $_POST['file_extension'],
97
-                                 'file_infolder' => $_POST['file_infolder'], ));
94
+                                    'file_mid' => $_POST['file_mid'],
95
+                                    'file_name' => $_POST['file_name'],
96
+                                    'file_extension' => $_POST['file_extension'],
97
+                                    'file_infolder' => $_POST['file_infolder'], ));
98 98
 
99 99
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
100 100
             if ($addfilesObj->isNew()) {
Please login to merge, or discard this patch.
admin/morefiles.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@
 block discarded – undo
91 91
         }
92 92
         // Form file save
93 93
         $addfilesObj->setVars(array(
94
-                                 'file_mid' => $_POST['file_mid'],
95
-                                 'file_name' => $_POST['file_name'],
96
-                                 'file_extension' => $_POST['file_extension'],
97
-                                 'file_infolder' => $_POST['file_infolder'], ));
94
+                                    'file_mid' => $_POST['file_mid'],
95
+                                    'file_name' => $_POST['file_name'],
96
+                                    'file_extension' => $_POST['file_extension'],
97
+                                    'file_infolder' => $_POST['file_infolder'], ));
98 98
 
99 99
         if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) {
100 100
             if ($addfilesObj->isNew()) {
Please login to merge, or discard this patch.
class/files/user/UserSearch.php 2 patches
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.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,19 +28,19 @@  discard block
 block discarded – undo
28 28
 class UserSearch extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    * @var mixed
32
-    */
31
+     * @var mixed
32
+     */
33 33
     private $usercode = null;
34 34
 
35 35
     /**
36
-    * @var string
37
-    */
36
+     * @var string
37
+     */
38 38
     private $xoopscode = null;
39 39
 
40 40
     /**
41
-    *  @public function constructor
42
-    *  @param null
43
-    */
41
+     *  @public function constructor
42
+     *  @param null
43
+     */
44 44
 
45 45
     public function __construct()
46 46
     {
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    *  @static function getInstance
55
-    *  @param null
54
+     *  @static function getInstance
55
+     *  @param null
56 56
      * @return UserSearch
57 57
      */
58 58
     public static function getInstance()
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    *  @public function write
70
-    *  @param string $module
71
-    *  @param mixed $table
72
-    *  @param string $filename
69
+     *  @public function write
70
+     *  @param string $module
71
+     *  @param mixed $table
72
+     *  @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-    *  @public function getAdminPagesList
117
+     *  @public function getAdminPagesList
118 118
      * @param $moduleDirname
119 119
      * @param $tableName
120 120
      * @param $language
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
     }
160 160
 
161 161
     /**
162
-    *  @public function render
163
-    *  @param null
162
+     *  @public function render
163
+     *  @param null
164 164
      * @return bool|string
165 165
      */
166 166
     public function render()
Please login to merge, or discard this patch.
class/files/language/LanguageAdmin.php 2 patches
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.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class LanguageAdmin extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    *  @public function constructor
32
-    *  @param null
33
-    */
31
+     *  @public function constructor
32
+     *  @param null
33
+     */
34 34
 
35 35
     public function __construct()
36 36
     {
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    *  @static function getInstance
43
-    *  @param null
42
+     *  @static function getInstance
43
+     *  @param null
44 44
      * @return LanguageAdmin
45 45
      */
46 46
     public static function getInstance()
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-    *  @public function getLanguageAdminIndex
73
-    *  @param string $language
74
-    *  @param string $tables
75
-    *  @return string
76
-    */
72
+     *  @public function getLanguageAdminIndex
73
+     *  @param string $language
74
+     *  @param string $tables
75
+     *  @return string
76
+     */
77 77
     public function getLanguageAdminIndex($language, $tables)
78 78
     {
79 79
         $ret = $this->defines->getAboveHeadDefines('Admin Index');
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-    *  @public function getLanguageAdminPages
94
-    *  @param string $language
95
-    *  @param string $tables
96
-    *  @return string
97
-    */
93
+     *  @public function getLanguageAdminPages
94
+     *  @param string $language
95
+     *  @param string $tables
96
+     *  @return string
97
+     */
98 98
     public function getLanguageAdminPages($language, $tables)
99 99
     {
100 100
         $ret = $this->defines->getAboveHeadDefines('Admin Files');
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
     }
133 133
 
134 134
     /**
135
-    *  @public function getLanguageAdminClass
136
-    *  @param string $language
137
-    *  @param string $tables
138
-    *  @return string
139
-    */
135
+     *  @public function getLanguageAdminClass
136
+     *  @param string $language
137
+     *  @param string $tables
138
+     *  @return string
139
+     */
140 140
     public function getLanguageAdminClass($language, $tables)
141 141
     {
142 142
         $ret = $this->defines->getAboveHeadDefines('Admin Classes');
@@ -206,10 +206,10 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     /**
209
-    *  @public function getLanguageAdminPermissions
210
-    *  @param string $language
211
-    *  @return string
212
-    */
209
+     *  @public function getLanguageAdminPermissions
210
+     *  @param string $language
211
+     *  @return string
212
+     */
213 213
     public function getLanguageAdminPermissions($language)
214 214
     {
215 215
         $ret = $this->defines->getAboveHeadDefines('Admin Permissions');
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
     }
232 232
 
233 233
     /**
234
-    *  @public function getLanguageAdminFoot
235
-    *  @param string $language
236
-    *  @return string
237
-    */
234
+     *  @public function getLanguageAdminFoot
235
+     *  @param string $language
236
+     *  @return string
237
+     */
238 238
     public function getLanguageAdminFoot($language)
239 239
     {
240 240
         $ret = $this->defines->getAboveHeadDefines('Admin Others');
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
     }
246 246
 
247 247
     /**
248
-    *  @public function render
249
-    *  @param null
248
+     *  @public function render
249
+     *  @param null
250 250
      * @return bool|string
251 251
      */
252 252
     public function render()
Please login to merge, or discard this patch.
class/files/admin/AdminHeader.php 2 patches
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.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
 class AdminHeader extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    * @var mixed
32
-    */
31
+     * @var mixed
32
+     */
33 33
     private $xc = null;
34 34
 
35 35
     /**
36
-    *  @public function constructor
37
-    *  @param null
38
-    */
36
+     *  @public function constructor
37
+     *  @param null
38
+     */
39 39
 
40 40
     public function __construct()
41 41
     {
@@ -45,8 +45,8 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-    *  @static function getInstance
49
-    *  @param null
48
+     *  @static function getInstance
49
+     *  @param null
50 50
      * @return AdminHeader
51 51
      */
52 52
     public static function getInstance()
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-    *  @public function write
64
-    *  @param string $module
65
-    *  @param mixed $table
66
-    *  @param array $tables
67
-    *  @param string $filename
68
-    */
63
+     *  @public function write
64
+     *  @param string $module
65
+     *  @param mixed $table
66
+     *  @param array $tables
67
+     *  @param string $filename
68
+     */
69 69
     public function write($module, $table, $tables, $filename)
70 70
     {
71 71
         $this->setModule($module);
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
     }
137 137
 
138 138
     /**
139
-    *  @public function render
140
-    *  @param null
139
+     *  @public function render
140
+     *  @param null
141 141
      * @return bool|string
142 142
      */
143 143
     public function render()
Please login to merge, or discard this patch.