Completed
Pull Request — master (#545)
by Richard
09:25
created
htdocs/class/xoopsmailer.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
     // public
151 151
     /**
152
-     * @param null $value
152
+     * @param string $value
153 153
      */
154 154
     public function setTemplateDir($value = null)
155 155
     {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
     // private
165 165
     /**
166
-     * @return bool|string
166
+     * @return string|false
167 167
      */
168 168
     public function getTemplatePath()
169 169
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     // public
189 189
     /**
190
-     * @param $value
190
+     * @param string $value
191 191
      */
192 192
     public function setTemplate($value)
193 193
     {
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     // RMV-NOTIFY
216 216
     // public
217 217
     /**
218
-     * @param $user
218
+     * @param XoopsUser $user
219 219
      */
220 220
     public function setFromUser($user)
221 221
     {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
     // public
237 237
     /**
238
-     * @param $value
238
+     * @param string $value
239 239
      */
240 240
     public function setSubject($value)
241 241
     {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
     // public
246 246
     /**
247
-     * @param $value
247
+     * @param string $value
248 248
      */
249 249
     public function setBody($value)
250 250
     {
@@ -374,8 +374,8 @@  discard block
 block discarded – undo
374 374
     // private
375 375
     /**
376 376
      * @param $uid
377
-     * @param $subject
378
-     * @param $body
377
+     * @param string $subject
378
+     * @param string $body
379 379
      *
380 380
      * @return bool
381 381
      */
@@ -402,9 +402,9 @@  discard block
 block discarded – undo
402 402
      * Uses the new XoopsMultiMailer
403 403
      *
404 404
      * @param $email
405
-     * @param $subject
406
-     * @param $body
407
-     * @param $headers
405
+     * @param string $subject
406
+     * @param string $body
407
+     * @param string $headers
408 408
      *
409 409
      * @return bool
410 410
      */
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     // abstract
573 573
     // to be overridden by lang specific mail class, if needed
574 574
     /**
575
-     * @param $text
575
+     * @param string $text
576 576
      *
577 577
      * @return mixed
578 578
      */
Please login to merge, or discard this patch.
htdocs/install/class/dbmanager.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     }
201 201
 
202 202
     /**
203
-     * @param $sql
203
+     * @param string $sql
204 204
      *
205 205
      * @return mixed
206 206
      */
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     }
213 213
 
214 214
     /**
215
-     * @param $table
215
+     * @param string $table
216 216
      *
217 217
      * @return mixed
218 218
      */
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
     }
237 237
 
238 238
     /**
239
-     * @param $table
240
-     * @param $query
239
+     * @param string $table
240
+     * @param string $query
241 241
      *
242 242
      * @return bool
243 243
      */
Please login to merge, or discard this patch.
htdocs/kernel/configitem.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
     /**
228 228
      * Assign one or more {@link XoopsConfigItemOption}s
229 229
      *
230
-     * @param mixed $option either a {@link XoopsConfigItemOption} object or an array of them
230
+     * @param XoopsConfigOption $option either a {@link XoopsConfigItemOption} object or an array of them
231 231
      */
232 232
     public function setConfOptions($option)
233 233
     {
Please login to merge, or discard this patch.
htdocs/modules/system/class/menu.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-     * @param        $value
53
+     * @param        string $value
54 54
      * @param string $name
55 55
      */
56 56
     public function addMenuTop($value, $name = '')
Please login to merge, or discard this patch.
htdocs/modules/system/include/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
  *
19 19
  * Comment by Taiwen Jiang (a.k.a. phppp): THE METHOD IS NOT COMPLETE AND NOT SAFE. YOU ARE ENCOURAGED TO USE PHP'S NATIVE FILTER_VAR OR FILTER_INPUT FUNCTIONS DIRECTLY BEFORE WE MIGRATE TO XOOPS 3.
20 20
  * @param                   $global
21
- * @param                   $key
21
+ * @param                   string $key
22 22
  * @param  string           $default
23 23
  * @param  string           $type
24
- * @return int|mixed|string
24
+ * @return integer
25 25
  */
26 26
 function system_CleanVars(&$global, $key, $default = '', $type = 'int')
27 27
 {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 }
104 104
 
105 105
 /**
106
- * @param $img
106
+ * @param string $img
107 107
  *
108 108
  * @return mixed
109 109
  */
Please login to merge, or discard this patch.
htdocs/modules/system/class/fineuploadhandler.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * Get the original filename
65
+     * @return string
65 66
      */
66 67
     public function getName()
67 68
     {
@@ -269,6 +270,9 @@  discard block
 block discarded – undo
269 270
         }
270 271
     }
271 272
 
273
+    /**
274
+     * @param string $mimeType
275
+     */
272 276
     protected function storeUploadedFile($target, $mimeType, $uuid)
273 277
     {
274 278
         if (!is_dir(dirname($target))) {
Please login to merge, or discard this patch.
htdocs/class/textsanitizer/syntaxhighlight/syntaxhighlight.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @param $text
47
+     * @param string $text
48 48
      *
49
-     * @return mixed|string
49
+     * @return string
50 50
      */
51 51
     public function php($text)
52 52
     {
Please login to merge, or discard this patch.
htdocs/class/libraries/vendor/webmozart/assert/src/Assert.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -363,6 +363,9 @@  discard block
 block discarded – undo
363 363
         }
364 364
     }
365 365
 
366
+    /**
367
+     * @param integer $value
368
+     */
366 369
     public static function eq($value, $value2, $message = '')
367 370
     {
368 371
         if ($value2 != $value) {
@@ -937,6 +940,9 @@  discard block
 block discarded – undo
937 940
         return mb_strwidth($value, $encoding);
938 941
     }
939 942
 
943
+    /**
944
+     * @param string $message
945
+     */
940 946
     protected static function reportInvalidArgument($message)
941 947
     {
942 948
         throw new InvalidArgumentException($message);
Please login to merge, or discard this patch.
htdocs/modules/system/admin/modulesadmin/modulesadmin.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 }
522 522
 
523 523
 /**
524
- * @param        $dirname
524
+ * @param        string $dirname
525 525
  * @param        $template
526 526
  * @param string $type
527 527
  *
@@ -1405,9 +1405,9 @@  discard block
 block discarded – undo
1405 1405
 
1406 1406
 /**
1407 1407
  * @param $module
1408
- * @param $title
1408
+ * @param string $title
1409 1409
  *
1410
- * @return array
1410
+ * @return string[]
1411 1411
  */
1412 1412
 function xoops_module_log_header($module, $title)
1413 1413
 {
@@ -1433,7 +1433,7 @@  discard block
 block discarded – undo
1433 1433
  *                              2 = smarty compile
1434 1434
  *                              3 = xoops cache
1435 1435
  *                              or null to clear all
1436
- * @return bool
1436
+ * @return boolean|null
1437 1437
  */
1438 1438
 function xoops_module_delayed_clean_cache($cacheList = null)
1439 1439
 {
Please login to merge, or discard this patch.