Completed
Push — master ( 6b7a6d...74143b )
by Gino
20s
created
class/files/templates/admin/TemplatesAdminPermissions.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @param $module
71 71
      * @param $tables
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $tables, $filename)
75 75
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     *  @param null
147 147
     */
148 148
     /**
149
-     * @return bool|string
149
+     * @return null|string
150 150
      */
151 151
     public function render()
152 152
     {
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesAdminPermissions 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
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return TemplatesAdminPermissions
44 44
      */
45 45
     public static function getInstance()
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    *  @public function write
57
-    *  @param string $module
56
+     *  @public function write
57
+     *  @param string $module
58 58
      * @param $filename
59 59
      */
60 60
     public function write($module, $filename)
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     }
65 65
 
66 66
     /**
67
-    *  @private function getTemplatesAdminPermissionsHeader
68
-    *  @param string $moduleDirname
67
+     *  @private function getTemplatesAdminPermissionsHeader
68
+     *  @param string $moduleDirname
69 69
      *
70 70
      * @return string
71 71
      */
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-    *  @private function getTemplatesAdminPermissions
81
-    *  @param null
80
+     *  @private function getTemplatesAdminPermissions
81
+     *  @param null
82 82
      * @return string
83 83
      */
84 84
     private function getTemplatesAdminPermissions()
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-    *  @private function getTemplatesAdminPermissionsFooter
96
-    *  @param string $moduleDirname
95
+     *  @private function getTemplatesAdminPermissionsFooter
96
+     *  @param string $moduleDirname
97 97
      *
98 98
      * @return string
99 99
      */
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-    *  @public function render
109
-    *  @param null
108
+     *  @public function render
109
+     *  @param null
110 110
      * @return bool|string
111 111
      */
112 112
     public function render()
Please login to merge, or discard this patch.
class/files/templates/blocks/TemplatesBlocks.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @param string $moduleDirname
94 94
      * @param        $tableId
95 95
      * @param        $tableMid
96
-     * @param        $tableName
96
+     * @param        string $tableName
97 97
      * @param        $tableSoleName
98 98
      * @param        $tableAutoincrement
99 99
      * @param string $language
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      * @public function render
208 208
      * @param null
209 209
      *
210
-     * @return bool|string
210
+     * @return null|string
211 211
      */
212 212
     public function render()
213 213
     {
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
             $fieldName    = $fields[$f]->getVar('field_name');
82 82
             $stuFieldName = strtoupper($fieldName);
83 83
             $lang         = $hc->getSmartyConst($language, $stuFieldName);
84
-            $th .= $hc->getHtmlTableHead($lang, 'center') . PHP_EOL;
84
+            $th .= $hc->getHtmlTableHead($lang, 'center').PHP_EOL;
85 85
         }
86
-        $tr = $hc->getHtmlTableRow($th, 'head') . PHP_EOL;
86
+        $tr = $hc->getHtmlTableRow($th, 'head').PHP_EOL;
87 87
 
88
-        return $hc->getHtmlTableThead($tr) . PHP_EOL;
88
+        return $hc->getHtmlTableThead($tr).PHP_EOL;
89 89
     }
90 90
 
91 91
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $td = '';
106 106
         if (1 == $tableAutoincrement) {
107 107
             $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
108
-            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double) . PHP_EOL;
108
+            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double).PHP_EOL;
109 109
         }
110 110
         $fields = $this->getTableFields($tableMid, $tableId);
111 111
         foreach (array_keys($fields) as $f) {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         // Old code was <span style="background-color: #<{\$list.{$rpFieldName}}>;">...
124 124
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
125 125
                         $span   = $hc->getHtmlTag('span', array(), $double);
126
-                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $span) . PHP_EOL;
126
+                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $span).PHP_EOL;
127 127
                         /*$ret .= <<<EOT
128 128
                     <td class="center"><span style="background-color: #<{\$list.{$rpFieldName}}>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></td>\n
129 129
 EOT;*/
@@ -132,18 +132,18 @@  discard block
 block discarded – undo
132 132
                         $src = $hc->getSmartyNoSimbol('xoModuleIcons32');
133 133
                         $src .= $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
134 134
                         $img = $hc->getHtmlTag('img', array('src' => $src, 'alt' => $tableName), '', false);
135
-                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img) . PHP_EOL;
135
+                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img).PHP_EOL;
136 136
                         break;
137 137
                     case 13:
138
-                        $single = $hc->getSmartySingleVar($moduleDirname . '_upload_url');
138
+                        $single = $hc->getSmartySingleVar($moduleDirname.'_upload_url');
139 139
                         $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
140
-                        $img    = $hc->getHtmlTag('img', array('src' => $single . "/images/{$tableName}/" . $double, 'alt' => $tableName), '', false);
141
-                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img) . PHP_EOL;
140
+                        $img    = $hc->getHtmlTag('img', array('src' => $single."/images/{$tableName}/".$double, 'alt' => $tableName), '', false);
141
+                        $td .= $hc->getHtmlTag('td', array('class' => 'center'), $img).PHP_EOL;
142 142
                         break;
143 143
                     default:
144 144
                         if (0 != $f) {
145 145
                             $double = $hc->getSmartyDoubleVar($tableSoleName, $rpFieldName);
146
-                            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double) . PHP_EOL;
146
+                            $td .= $hc->getHtmlTag('td', array('class' => 'center'), $double).PHP_EOL;
147 147
                         }
148 148
                         break;
149 149
                 }
@@ -153,19 +153,19 @@  discard block
 block discarded – undo
153 153
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
154 154
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 edit.png');
155 155
         $img    = $hc->getHtmlTag('img', array('src' => $src, 'alt' => $tableName), '', false);
156
-        $anchor = $hc->getHtmlTag('a', array('href' => $tableName . ".php?op=edit&amp;{$fieldId}=" . $double, 'title' => $lang), $img) . PHP_EOL;
156
+        $anchor = $hc->getHtmlTag('a', array('href' => $tableName.".php?op=edit&amp;{$fieldId}=".$double, 'title' => $lang), $img).PHP_EOL;
157 157
         $lang   = $hc->getSmartyConst('', '_DELETE');
158 158
         $double = $hc->getSmartyDoubleVar($tableSoleName, 'id');
159 159
         $src    = $hc->getSmartyNoSimbol('xoModuleIcons32 delete.png');
160
-        $img    = $hc->getHtmlTag('img', array('src' => $src . $double, 'alt' => $tableName), '', false);
161
-        $anchor .= $hc->getHtmlTag('a', array('href' => $tableName . ".php?op=delete&amp;{$fieldId}=" . $double, 'title' => $lang), $img) . PHP_EOL;
162
-        $td .= $hc->getHtmlTag('td', array('class' => 'center'), "\n" . $anchor) . PHP_EOL;
160
+        $img    = $hc->getHtmlTag('img', array('src' => $src.$double, 'alt' => $tableName), '', false);
161
+        $anchor .= $hc->getHtmlTag('a', array('href' => $tableName.".php?op=delete&amp;{$fieldId}=".$double, 'title' => $lang), $img).PHP_EOL;
162
+        $td .= $hc->getHtmlTag('td', array('class' => 'center'), "\n".$anchor).PHP_EOL;
163 163
         $cycle   = $hc->getSmartyNoSimbol('cycle values="odd, even"');
164
-        $tr      = $hc->getHtmlTag('tr', array('class' => $cycle), $td) . PHP_EOL;
165
-        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName . '_list', $tr) . PHP_EOL;
166
-        $tbody   = $hc->getHtmlTag('tbody', array(), $foreach) . PHP_EOL;
164
+        $tr      = $hc->getHtmlTag('tr', array('class' => $cycle), $td).PHP_EOL;
165
+        $foreach = $hc->getSmartyForeach($tableSoleName, $tableName.'_list', $tr).PHP_EOL;
166
+        $tbody   = $hc->getHtmlTag('tbody', array(), $foreach).PHP_EOL;
167 167
 
168
-        return $hc->getSmartyConditions($tableName . '_count', '', '', $tbody) . PHP_EOL;
168
+        return $hc->getSmartyConditions($tableName.'_count', '', '', $tbody).PHP_EOL;
169 169
     }
170 170
 
171 171
     /**
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
     private function getTemplatesBlocksTableTfoot()
176 176
     {
177 177
         $hc = TDMCreateHtmlSmartyCodes::getInstance();
178
-        $td = $hc->getHtmlTag('td', array(), '&nbsp;') . PHP_EOL;
179
-        $tr = $hc->getHtmlTag('tr', array(), $td) . PHP_EOL;
178
+        $td = $hc->getHtmlTag('td', array(), '&nbsp;').PHP_EOL;
179
+        $tr = $hc->getHtmlTag('tr', array(), $td).PHP_EOL;
180 180
 
181
-        return $hc->getHtmlTag('tfoot', array(), $tr) . PHP_EOL;
181
+        return $hc->getHtmlTag('tfoot', array(), $tr).PHP_EOL;
182 182
     }
183 183
 
184 184
     /**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $tbody .= $this->getTemplatesBlocksTableTfoot();
201 201
         $single = $hc->getSmartySingleVar('table_type');
202 202
 
203
-        return $hc->getHtmlTable($tbody, 'table table-' . $single) . PHP_EOL;
203
+        return $hc->getHtmlTable($tbody, 'table table-'.$single).PHP_EOL;
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserIndex.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
      * @public function write
57
-     * @param $module
57
+     * @param string $module
58 58
      * @param $table
59 59
      * @param $tables
60
-     * @param $filename
60
+     * @param string $filename
61 61
      */
62 62
     public function write($module, $table, $tables, $filename)
63 63
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     *  @public function getTemplatesUserIndexBodyDefault
156 156
      * @param $module
157 157
      * @param $table
158
-     * @param $language
158
+     * @param string $language
159 159
      * @return bool|string
160 160
      */
161 161
     public function getTemplatesUserIndexBodyDefault($module, $table, $language)
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @param $moduleDirname
210 210
      * @param $tableName
211 211
      * @param $tableSoleName
212
-     * @param $language
212
+     * @param string $language
213 213
      * @return bool|string
214 214
      */
215 215
     public function getTemplateUserIndexCategories($moduleDirname, $tableName, $tableSoleName, $language)
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      * @param $moduleDirname
261 261
      * @param $tableName
262 262
      * @param $tableSoleName
263
-     * @param $language
263
+     * @param string $language
264 264
      * @return bool|string
265 265
      */
266 266
     public function getTemplateUserIndexTable($moduleDirname, $tableName, $tableSoleName, $language)
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     /**
306 306
     *  @public function render
307 307
     *  @param null
308
-     * @return bool|string
308
+     * @return null|string
309 309
      */
310 310
     public function render()
311 311
     {
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesUserIndex 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
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return TemplatesUserIndex
44 44
      */
45 45
     public static function getInstance()
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-    *  @public function getTemplateUserIndexHeader
72
-    *  @param $moduleDirname
71
+     *  @public function getTemplateUserIndexHeader
72
+     *  @param $moduleDirname
73 73
      * @return bool|string
74 74
      */
75 75
     public function getTemplateUserIndexHeader($moduleDirname)
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-    *  @private function getTemplatesUserIndexTable
83
+     *  @private function getTemplatesUserIndexTable
84 84
      * @param $moduleDirname
85 85
      * @param $tableName
86 86
      * @param $tableSolename
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
     }
99 99
 
100 100
     /**
101
-    *  @private function getTemplatesUserIndexThead
102
-    *  @param string $language
101
+     *  @private function getTemplatesUserIndexThead
102
+     *  @param string $language
103 103
      * @param $tableName
104 104
      * @return string
105 105
      */
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     }
117 117
 
118 118
     /**
119
-    *  @private function getTemplatesUserIndexTbody
119
+     *  @private function getTemplatesUserIndexTbody
120 120
      * @param $moduleDirname
121 121
      * @param $tableName
122 122
      * @param $tableSolename
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-    *  @private function getTemplatesUserIndexTfoot
142
+     *  @private function getTemplatesUserIndexTfoot
143 143
      * @return string
144 144
      */
145 145
     private function getTemplatesUserIndexTableTfoot()
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-    *  @public function getTemplatesUserIndexBodyDefault
155
+     *  @public function getTemplatesUserIndexBodyDefault
156 156
      * @param $module
157 157
      * @param $table
158 158
      * @param $language
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     }
206 206
 
207 207
     /**
208
-    *  @public function getTemplateUserIndexCategories
208
+     *  @public function getTemplateUserIndexCategories
209 209
      * @param $moduleDirname
210 210
      * @param $tableName
211 211
      * @param $tableSoleName
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     }
257 257
 
258 258
     /**
259
-    *  @public function getTemplateUserIndexTable
259
+     *  @public function getTemplateUserIndexTable
260 260
      * @param $moduleDirname
261 261
      * @param $tableName
262 262
      * @param $tableSoleName
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
     }
292 292
 
293 293
     /**
294
-    *  @public function getTemplateUserIndexFooter
295
-    *  @param $moduleDirname
294
+     *  @public function getTemplateUserIndexFooter
295
+     *  @param $moduleDirname
296 296
      * @return bool|string
297 297
      */
298 298
     public function getTemplateUserIndexFooter($moduleDirname)
@@ -303,8 +303,8 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-    *  @public function render
307
-    *  @param null
306
+     *  @public function render
307
+     *  @param null
308 308
      * @return bool|string
309 309
      */
310 310
     public function render()
Please login to merge, or discard this patch.
class/files/templates/user/TemplatesUserPages.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
     *  @private function getTemplatesUserPagesThead
101 101
     *  @param string $language
102
-     * @param $tableName
102
+     * @param string $tableName
103 103
      * @return string
104 104
      */
105 105
     private function getTemplatesUserPagesTableThead($tableName, $language)
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     *  @private function getTemplatesUserPagesTbody
119 119
     *  @param string $moduleDirname
120 120
     *  @param string $language
121
-     * @param $tableName
121
+     * @param string $tableName
122 122
      * @param $tableSolename
123 123
      * @return string
124 124
      */
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * @param $moduleDirname
158 158
      * @param $tableName
159 159
      * @param $tableSolename
160
-     * @param $language
160
+     * @param string $language
161 161
      * @return string
162 162
      */
163 163
     private function getTemplatesUserPages($moduleDirname, $tableName, $tableSolename, $language)
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     *  @public function render
187 187
     *  @param null
188 188
      *
189
-     * @return bool|string
189
+     * @return null|string
190 190
      */
191 191
     public function render()
192 192
     {
Please login to merge, or discard this patch.
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class TemplatesUserPages 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
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return TemplatesUserPages
44 44
      */
45 45
     public static function getInstance()
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    *  @public function write
57
-    *  @param string $module
58
-    *  @param string $table
59
-    *  @param string $filename
56
+     *  @public function write
57
+     *  @param string $module
58
+     *  @param string $table
59
+     *  @param string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
     /**
69
-    *  @private function getTemplatesUserPagesHeader
70
-    *  @param string $moduleDirname
69
+     *  @private function getTemplatesUserPagesHeader
70
+     *  @param string $moduleDirname
71 71
      * @return string
72 72
      */
73 73
     private function getTemplatesUserPagesHeader($moduleDirname)
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     /**
100
-    *  @private function getTemplatesUserPagesThead
101
-    *  @param string $language
100
+     *  @private function getTemplatesUserPagesThead
101
+     *  @param string $language
102 102
      * @param $tableName
103 103
      * @return string
104 104
      */
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-    *  @private function getTemplatesUserPagesTbody
119
-    *  @param string $moduleDirname
120
-    *  @param string $language
118
+     *  @private function getTemplatesUserPagesTbody
119
+     *  @param string $moduleDirname
120
+     *  @param string $language
121 121
      * @param $tableName
122 122
      * @param $tableSolename
123 123
      * @return string
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     }
139 139
 
140 140
     /**
141
-    *  @private function getTemplatesUserPagesTfoot
141
+     *  @private function getTemplatesUserPagesTfoot
142 142
      * @param null
143 143
      * @return string
144 144
      *
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-    *  @private function getTemplatesUserPages
156
+     *  @private function getTemplatesUserPages
157 157
      * @param $moduleDirname
158 158
      * @param $tableName
159 159
      * @param $tableSolename
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
     }
171 171
 
172 172
     /**
173
-    *  @private function getTemplatesUserPagesFooter
174
-    *  @param string $moduleDirname
173
+     *  @private function getTemplatesUserPagesFooter
174
+     *  @param string $moduleDirname
175 175
      *
176 176
      * @return string
177 177
      */
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
     }
184 184
 
185 185
     /**
186
-    *  @public function render
187
-    *  @param null
186
+     *  @public function render
187
+     *  @param null
188 188
      *
189 189
      * @return bool|string
190 190
      */
Please login to merge, or discard this patch.
class/files/user/UserBroken.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 
55 55
     /**
56 56
      *  @public function write
57
-     *  @param $module
57
+     *  @param string $module
58 58
      *  @param mixed $table
59
-     *  @param $filename
59
+     *  @param string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      *  @param $tableName
177 177
      *  @param $tableSoleName
178 178
      *  @param $tableAutoincrement
179
-     *  @param $language
179
+     *  @param string $language
180 180
      * @return bool|string
181 181
       */
182 182
     private function getUserBrokenSwitch($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $language)
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     /**
196 196
      *  @public function render
197 197
      *  @param null
198
-     * @return bool|string
198
+     * @return null|string
199 199
      */
200 200
     public function render()
201 201
     {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -171,14 +171,14 @@
 block discarded – undo
171 171
     }
172 172
 
173 173
     /**
174
-      *  @private function getUserSubmitSwitch
175
-      *  @param $moduleDirname
174
+     *  @private function getUserSubmitSwitch
175
+     *  @param $moduleDirname
176 176
      *  @param $tableName
177 177
      *  @param $tableSoleName
178 178
      *  @param $tableAutoincrement
179 179
      *  @param $language
180 180
      * @return bool|string
181
-      */
181
+     */
182 182
     private function getUserBrokenSwitch($moduleDirname, $tableName, $tableSoleName, $tableAutoincrement, $language)
183 183
     {
184 184
         $xc = TDMCreateXoopsCode::getInstance();
Please login to merge, or discard this patch.
class/files/user/UserPdf.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param $moduleDirname
84 84
      * @param $tableName
85 85
      * @param $fields
86
-     * @param $language
86
+     * @param string $language
87 87
      * @return string
88 88
      */
89 89
     private function getUserPdfHeader($moduleDirname, $tableName, $fields, $language)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     /**
215 215
     *  @public function render
216 216
     *  @param null
217
-     * @return bool|string
217
+     * @return null|string
218 218
      */
219 219
     public function render()
220 220
     {
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/user/UserSubmit.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     *  @public function getUserSubmitFooter
170 170
     *  @param null
171 171
      * @param $moduleDirname
172
-     * @param $language
172
+     * @param string $language
173 173
      * @return string
174 174
      */
175 175
     public function getUserSubmitFooter($moduleDirname, $language)
@@ -193,8 +193,8 @@  discard block
 block discarded – undo
193 193
      * @param $tableSolename
194 194
      * @param $tableSubmit
195 195
      * @param $tableAutoincrement
196
-     * @param $language
197
-     * @param $t
196
+     * @param string $language
197
+     * @param string $t
198 198
      * @return string
199 199
      */
200 200
     private function getUserSubmitSwitch($moduleDirname, $tableId, $tableMid, $tableName, $tableSolename, $tableSubmit, $tableAutoincrement, $language, $t)
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     /**
211 211
     *  @public function render
212 212
     *  @param null
213
-     * @return bool|string
213
+     * @return null|string
214 214
      */
215 215
     public function render()
216 216
     {
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 class UserSubmit 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
     {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    *  @static function getInstance
42
-    *  @param null
41
+     *  @static function getInstance
42
+     *  @param null
43 43
      * @return UserSubmit
44 44
      */
45 45
     public static function getInstance()
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    *  @public function write
57
-    *  @param string $module
58
-    *  @param mixed $table
59
-    *  @param string $filename
56
+     *  @public function write
57
+     *  @param string $module
58
+     *  @param mixed $table
59
+     *  @param string $filename
60 60
      */
61 61
     public function write($module, $table, $filename)
62 62
     {
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
     }
126 126
 
127 127
     /**
128
-    *  @public function getUserSubmitSave
129
-    *  @param string $moduleDirname
128
+     *  @public function getUserSubmitSave
129
+     *  @param string $moduleDirname
130 130
      * @param        $fields
131
-    *  @param string $tableName
131
+     *  @param string $tableName
132 132
      * @param        $tableSolename
133 133
      * @param        $tableSubmit
134 134
      * @param        $tableAutoincrement
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
     }
167 167
 
168 168
     /**
169
-    *  @public function getUserSubmitFooter
170
-    *  @param null
169
+     *  @public function getUserSubmitFooter
170
+     *  @param null
171 171
      * @param $moduleDirname
172 172
      * @param $language
173 173
      * @return string
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
     }
209 209
 
210 210
     /**
211
-    *  @public function render
212
-    *  @param null
211
+     *  @public function render
212
+     *  @param null
213 213
      * @return bool|string
214 214
      */
215 215
     public function render()
Please login to merge, or discard this patch.
class/files/user/UserXoopsCode.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @param string $type
64 64
      * @param        $language
65
-     * @param        $tableName
65
+     * @param        string $tableName
66 66
      *
67 67
      * @param string $t
68 68
      * @return string
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      *
129 129
      * @param $moduleDirname
130 130
      *
131
-     * @param $language
131
+     * @param string $language
132 132
      * @return string
133 133
      */
134 134
     public function getUserBreadcrumbsHeaderFile($moduleDirname, $language)
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      *
165 165
      * @param int    $eleArray
166 166
      * @param        $descriptions
167
-     * @param null   $name
167
+     * @param string   $name
168 168
      * @param null   $index
169 169
      * @param bool   $num
170 170
      * @param string $t
Please login to merge, or discard this patch.
class/files/user/UserXoopsVersion.php 2 patches
Doc Comments   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@  discard block
 block discarded – undo
59 59
 
60 60
     /**
61 61
     *  @public function write
62
-    *  @param $module
62
+    *  @param string $module
63 63
     *  @param mixed $table
64 64
     *  @param mixed $tables
65
-    *  @param $filename
65
+    *  @param string $filename
66 66
      */
67 67
     public function write($module, $table, $tables, $filename)
68 68
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * @private function getXoopsVersionHeader
104 104
      * @param $module
105
-     * @param $language
105
+     * @param string $language
106 106
      *
107 107
      * @return string
108 108
      */
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 
325 325
     /**
326 326
     *  @private function getXoopsVersionSubmenu
327
-       * @param $language
327
+       * @param string $language
328 328
      * @param $tables
329 329
      * @return string
330 330
      */
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     *  @private function getXoopsVersionBlocks
360 360
       * @param $moduleDirname
361 361
      * @param $tables
362
-     * @param $language
362
+     * @param string $language
363 363
      * @return string
364 364
      */
365 365
     private function getXoopsVersionBlocks($moduleDirname, $tables, $language)
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
     *  @private function getXoopsVersionTypeBlocks
393 393
      * @param $moduleDirname
394 394
      * @param $tableName
395
-     * @param $stuTableSoleName
395
+     * @param string $stuTableSoleName
396 396
      * @param $language
397 397
      * @param $type
398 398
      * @return string
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     *  @private function getXoopsVersionConfig
418 418
      * @param $module
419 419
      * @param $table
420
-     * @param $language
420
+     * @param string $language
421 421
      *
422 422
      * @return string
423 423
      */
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
     /**
607 607
     *  @private function getXoopsVersionNotifications
608 608
      * @param $module
609
-     * @param $language
609
+     * @param string $language
610 610
      * @return string
611 611
      */
612 612
     private function getXoopsVersionNotifications($module, $language)
@@ -696,12 +696,12 @@  discard block
 block discarded – undo
696 696
     /**
697 697
     *  @private function getXoopsVersionNotificationGlobal
698 698
      * @param $language
699
-     * @param $type
700
-     * @param $name
701
-     * @param $title
699
+     * @param string $type
700
+     * @param string $name
701
+     * @param string $title
702 702
      * @param $from
703 703
      *
704
-     * @param $num
704
+     * @param integer $num
705 705
      * @return string
706 706
      */
707 707
     private function getXoopsVersionNotificationGlobal($language, $type, $name, $title, $from, $num)
@@ -721,13 +721,13 @@  discard block
 block discarded – undo
721 721
     /**
722 722
     *  @private function getXoopsVersionNotificationCategory
723 723
      * @param $language
724
-     * @param $type
725
-     * @param $name
726
-     * @param $title
724
+     * @param string $type
725
+     * @param string $name
726
+     * @param string $title
727 727
      * @param $file
728 728
      * @param $item
729
-     * @param $allow
730
-     * @param $num
729
+     * @param string $allow
730
+     * @param integer $num
731 731
      * @return string
732 732
      */
733 733
     private function getXoopsVersionNotificationCategory($language, $type, $name, $title, $file, $item, $allow, $num)
@@ -747,14 +747,14 @@  discard block
 block discarded – undo
747 747
     /**
748 748
     *  @private function getXoopsVersionNotificationTableName
749 749
      * @param $language
750
-     * @param $type
750
+     * @param string $type
751 751
      * @param $name
752 752
      * @param $title
753 753
      * @param $file
754 754
      * @param $item
755
-     * @param $allow
755
+     * @param integer $allow
756 756
      *
757
-     * @param $num
757
+     * @param integer $num
758 758
      * @return string
759 759
      */
760 760
     private function getXoopsVersionNotificationTableName($language, $type, $name, $title, $file, $item, $allow, $num)
@@ -774,15 +774,15 @@  discard block
 block discarded – undo
774 774
     /**
775 775
     *  @private function getXoopsVersionNotifications
776 776
      * @param $language
777
-     * @param $type
778
-     * @param $name
777
+     * @param string $type
778
+     * @param string $name
779 779
      * @param $category
780
-     * @param $admin
780
+     * @param integer $admin
781 781
      * @param $title
782
-     * @param $table
783
-     * @param $mail
782
+     * @param string $table
783
+     * @param string $mail
784 784
      *
785
-     * @param $num
785
+     * @param integer $num
786 786
      * @return string
787 787
      */
788 788
     private function getXoopsVersionNotificationCodeComplete($language, $type, $name, $category, $admin, $title, $table, $mail, $num)
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
     /**
805 805
     *  @public function render
806 806
     *  @param null
807
-     * @return bool|string
807
+     * @return null|string
808 808
      */
809 809
     public function render()
810 810
     {
Please login to merge, or discard this patch.
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
 class UserXoopsVersion extends TDMCreateFile
29 29
 {
30 30
     /**
31
-    * @var array
32
-    */
31
+     * @var array
32
+     */
33 33
     private $kw = array();
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
     {
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-    *  @static function getInstance
47
-    *  @param null
46
+     *  @static function getInstance
47
+     *  @param null
48 48
      * @return UserXoopsVersion
49 49
      */
50 50
     public static function getInstance()
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-    *  @public function write
62
-    *  @param $module
63
-    *  @param mixed $table
64
-    *  @param mixed $tables
65
-    *  @param $filename
61
+     *  @public function write
62
+     *  @param $module
63
+     *  @param mixed $table
64
+     *  @param mixed $tables
65
+     *  @param $filename
66 66
      */
67 67
     public function write($module, $table, $tables, $filename)
68 68
     {
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-    *  @public function setKeywords
81
-    *  @param mixed $keywords
80
+     *  @public function setKeywords
81
+     *  @param mixed $keywords
82 82
      */
83 83
     public function setKeywords($keywords)
84 84
     {
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-    *  @public function getKeywords
94
-    *  @param null
93
+     *  @public function getKeywords
94
+     *  @param null
95 95
      * @return array
96 96
      */
97 97
     public function getKeywords()
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     /**
142
-    *  @private function getXoopsVersionMySQL
143
-    *  @param $moduleDirname
144
-    *  @param $table
142
+     *  @private function getXoopsVersionMySQL
143
+     *  @param $moduleDirname
144
+     *  @param $table
145 145
      * @param $tables
146 146
      * @return string
147 147
      */
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     }
168 168
 
169 169
     /**
170
-    *  @private function getXoopsVersionSearch
170
+     *  @private function getXoopsVersionSearch
171 171
      * @param $moduleDirname
172 172
      *
173 173
      * @return string
@@ -184,8 +184,8 @@  discard block
 block discarded – undo
184 184
     }
185 185
 
186 186
     /**
187
-    *  @private function getXoopsVersionComments
188
-    *  @param $moduleDirname
187
+     *  @private function getXoopsVersionComments
188
+     *  @param $moduleDirname
189 189
      *
190 190
      * @return string
191 191
      */
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
     }
205 205
 
206 206
     /**
207
-    *  @private function getXoopsVersionTemplatesAdmin
208
-    *  @param $moduleDirname
207
+     *  @private function getXoopsVersionTemplatesAdmin
208
+     *  @param $moduleDirname
209 209
      * @param $tables
210 210
      *
211 211
      * @return string
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     }
234 234
 
235 235
     /**
236
-    *  @private function getXoopsVersionTemplatesLine
236
+     *  @private function getXoopsVersionTemplatesLine
237 237
      * @param        $moduleDirname
238 238
      * @param        $type
239 239
      * @param string $extra
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
     }
261 261
 
262 262
     /**
263
-    *  @private function getXoopsVersionTemplatesUser
264
-    *  @param $moduleDirname
263
+     *  @private function getXoopsVersionTemplatesUser
264
+     *  @param $moduleDirname
265 265
      * @param $tables
266 266
      * @return string
267 267
      */
@@ -323,8 +323,8 @@  discard block
 block discarded – undo
323 323
     }
324 324
 
325 325
     /**
326
-    *  @private function getXoopsVersionSubmenu
327
-       * @param $language
326
+     *  @private function getXoopsVersionSubmenu
327
+     * @param $language
328 328
      * @param $tables
329 329
      * @return string
330 330
      */
@@ -356,8 +356,8 @@  discard block
 block discarded – undo
356 356
     }
357 357
 
358 358
     /**
359
-    *  @private function getXoopsVersionBlocks
360
-      * @param $moduleDirname
359
+     *  @private function getXoopsVersionBlocks
360
+     * @param $moduleDirname
361 361
      * @param $tables
362 362
      * @param $language
363 363
      * @return string
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     }
390 390
 
391 391
     /**
392
-    *  @private function getXoopsVersionTypeBlocks
392
+     *  @private function getXoopsVersionTypeBlocks
393 393
      * @param $moduleDirname
394 394
      * @param $tableName
395 395
      * @param $stuTableSoleName
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     }
415 415
 
416 416
     /**
417
-    *  @private function getXoopsVersionConfig
417
+     *  @private function getXoopsVersionConfig
418 418
      * @param $module
419 419
      * @param $table
420 420
      * @param $language
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
     }
566 566
 
567 567
     /**
568
-    *  @private function getNotificationsType
568
+     *  @private function getNotificationsType
569 569
      * @param $language
570 570
      * @param $type
571 571
      * @param $tableName
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
     }
605 605
 
606 606
     /**
607
-    *  @private function getXoopsVersionNotifications
607
+     *  @private function getXoopsVersionNotifications
608 608
      * @param $module
609 609
      * @param $language
610 610
      * @return string
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
     }
695 695
 
696 696
     /**
697
-    *  @private function getXoopsVersionNotificationGlobal
697
+     *  @private function getXoopsVersionNotificationGlobal
698 698
      * @param $language
699 699
      * @param $type
700 700
      * @param $name
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
     }
720 720
 
721 721
     /**
722
-    *  @private function getXoopsVersionNotificationCategory
722
+     *  @private function getXoopsVersionNotificationCategory
723 723
      * @param $language
724 724
      * @param $type
725 725
      * @param $name
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
     }
746 746
 
747 747
     /**
748
-    *  @private function getXoopsVersionNotificationTableName
748
+     *  @private function getXoopsVersionNotificationTableName
749 749
      * @param $language
750 750
      * @param $type
751 751
      * @param $name
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
     }
773 773
 
774 774
     /**
775
-    *  @private function getXoopsVersionNotifications
775
+     *  @private function getXoopsVersionNotifications
776 776
      * @param $language
777 777
      * @param $type
778 778
      * @param $name
@@ -802,8 +802,8 @@  discard block
 block discarded – undo
802 802
     }
803 803
 
804 804
     /**
805
-    *  @public function render
806
-    *  @param null
805
+     *  @public function render
806
+     *  @param null
807 807
      * @return bool|string
808 808
      */
809 809
     public function render()
Please login to merge, or discard this patch.