Completed
Pull Request — master (#51)
by Gino
06:03
created
class/files/user/UserBroken.php 2 patches
Doc Comments   +6 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 $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -190,6 +190,10 @@  discard block
 block discarded – undo
190 190
       *
191 191
       * @return
192 192
       */
193
+
194
+    /**
195
+     * @param string $language
196
+     */
193 197
     private function getUserBrokenSwitch($moduleDirname, $tableName, $language)
194 198
     {
195 199
         $table = $this->getTable();
@@ -207,7 +211,7 @@  discard block
 block discarded – undo
207 211
      *  @param null
208 212
      */
209 213
     /**
210
-     * @return bool|string
214
+     * @return null|string
211 215
      */
212 216
     public function render()
213 217
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
         $tableMid = $table->getVar('table_mid');
198 198
         $fields = $this->getTableFields($tableMid, $tableId);
199 199
         $cases = array('form' => array($this->getUserBrokenForm($tableName, $language)),
200
-                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $language)), );
200
+                    'save' => array($this->getUserBrokenSave($moduleDirname, $fields, $tableName, $language)),);
201 201
 
202 202
         return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
203 203
     }
Please login to merge, or discard this patch.
class/files/user/UserIndex.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     */
68 68
     /**
69 69
      * @param $module
70
-     * @param $filename
70
+     * @param string $filename
71 71
      */
72 72
     public function write($module, $table, $filename)
73 73
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @private function getBodyPagesIndex
151 151
      *
152 152
      * @param $moduleDirname
153
-     * @param $language
153
+     * @param string $language
154 154
      *
155 155
      * @return string
156 156
      */
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      *
206 206
      * @param $moduleDirname
207 207
      * @param $tableName
208
-     * @param $language
208
+     * @param string $language
209 209
      *
210 210
      * @return string
211 211
      */
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
     *  @param null
234 234
     */
235 235
     /**
236
-     * @return bool|string
236
+     * @return null|string
237 237
      */
238 238
     public function render()
239 239
     {
Please login to merge, or discard this patch.
class/files/user/UserPdf.php 1 patch
Doc Comments   +3 added lines, -3 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 $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @param $module
88 88
      * @param $tableName
89
-     * @param $language
89
+     * @param string $language
90 90
      *
91 91
      * @return string
92 92
      */
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     *  @param null
213 213
     */
214 214
     /**
215
-     * @return bool|string
215
+     * @return null|string
216 216
      */
217 217
     public function render()
218 218
     {
Please login to merge, or discard this patch.
class/files/user/UserRate.php 1 patch
Doc Comments   +4 added lines, -4 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 $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -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
      */
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param $moduleDirname
161 161
      * @param $fields
162 162
      * @param $tableName
163
-     * @param $language
163
+     * @param string $language
164 164
      *
165 165
      * @return string
166 166
      */
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     *  @param null
215 215
     */
216 216
     /**
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.
class/files/user/UserRss.php 1 patch
Doc Comments   +3 added lines, -3 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 $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     */
86 86
     /**
87 87
      * @param $moduleDirname
88
-     * @param $language
88
+     * @param string $language
89 89
      *
90 90
      * @return string
91 91
      */
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     *  @param null
204 204
     */
205 205
     /**
206
-     * @return bool|string
206
+     * @return null|string
207 207
      */
208 208
     public function render()
209 209
     {
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/files/user/UserSingle.php 1 patch
Doc Comments   +4 added lines, -4 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 $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -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/files/user/UserSubmit.php 2 patches
Doc Comments   +7 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 $table
72
-     * @param $filename
72
+     * @param string $filename
73 73
      */
74 74
     public function write($module, $table, $filename)
75 75
     {
@@ -182,6 +182,7 @@  discard block
 block discarded – undo
182 182
     *  @param null
183 183
     */
184 184
     /**
185
+     * @param string $language
185 186
      * @return string
186 187
      */
187 188
     public function getUserSubmitFooter($moduleDirname, $language)
@@ -203,6 +204,10 @@  discard block
 block discarded – undo
203 204
      *
204 205
      * @return string
205 206
      */
207
+
208
+    /**
209
+     * @param string $language
210
+     */
206 211
     private function getUserSubmitSwitch($moduleDirname, $tableName, $tableSoleName, $language)
207 212
     {
208 213
         $table = $this->getTable();
@@ -220,7 +225,7 @@  discard block
 block discarded – undo
220 225
     *  @param null
221 226
     */
222 227
     /**
223
-     * @return bool|string
228
+     * @return null|string
224 229
      */
225 230
     public function render()
226 231
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@
 block discarded – undo
210 210
         $tableMid = $table->getVar('table_mid');
211 211
         $fields = $this->getTableFields($tableMid, $tableId);
212 212
         $cases = array('form' => array($this->getUserSubmitForm($moduleDirname, $tableName, $tableSoleName, $language)),
213
-                    'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $language)), );
213
+                    'save' => array($this->getUserSubmitSave($moduleDirname, $fields, $tableName, $language)),);
214 214
 
215 215
         return $this->xoopscode->getXoopsCodeSwitch('op', $cases, true);
216 216
     }
Please login to merge, or discard this patch.
include/functions.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 10
  */
11 11
 /**
12
- * tdmcreate module.
13
- *
14
- * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
- * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
- *
17
- * @since           2.5.0
18
- *
19
- * @author          Txmod Xoops http://www.txmodxoops.org
20
- *
21
- * @version         $Id: functions.php 11084 2013-02-23 15:44:20Z timgno $
22
- */
12
+     * tdmcreate module.
13
+     *
14
+     * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
15
+     * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
16
+     *
17
+     * @since           2.5.0
18
+     *
19
+     * @author          Txmod Xoops http://www.txmodxoops.org
20
+     *
21
+     * @version         $Id: functions.php 11084 2013-02-23 15:44:20Z timgno $
22
+     */
23 23
 defined('XOOPS_ROOT_PATH') or die('Restricted access');
24 24
 
25 25
 /**
Please login to merge, or discard this patch.