Completed
Pull Request — master (#124)
by Lucio
11:47
created
htdocs/class/xoopskernel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      * Convert a XOOPS path to a physical one
46 46
      * @param               $url
47 47
      * @param  bool         $virtual
48
-     * @return mixed|string
48
+     * @return string
49 49
      */
50 50
     public function path($url, $virtual = false)
51 51
     {
Please login to merge, or discard this patch.
htdocs/class/xoopslists.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         /**
102 102
          * gets list of name of directories inside a directory
103
-         * @param $dirname
103
+         * @param string $dirname
104 104
          * @return array
105 105
          */
106 106
         public static function getDirListAsArray($dirname)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         /**
133 133
          * gets list of all files in a directory
134
-         * @param        $dirname
134
+         * @param        string $dirname
135 135
          * @param string $prefix
136 136
          * @return array
137 137
          */
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         /**
160 160
          * gets list of image file names in a directory
161
-         * @param        $dirname
161
+         * @param        string $dirname
162 162
          * @param string $prefix
163 163
          * @return array
164 164
          */
Please login to merge, or discard this patch.
htdocs/class/xoopslocal.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * XoopsLocalAbstract::substr()
29 29
      *
30
-     * @param mixed  $str
31
-     * @param mixed  $start
32
-     * @param mixed  $length
30
+     * @param string  $str
31
+     * @param integer  $start
32
+     * @param integer  $length
33 33
      * @param string $trimmarker
34 34
      *
35 35
      * @return mixed|string
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @param  mixed  $text
72 72
      * @param  string $to
73 73
      * @param  string $from
74
-     * @return mixed|string
74
+     * @return string
75 75
      */
76 76
     public static function convert_encoding($text, $to = 'utf-8', $from = '')
77 77
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * Setting $timeoffset to null (by default) will skip timezone calculation for user, using default timezone instead, which is a MUST for cached contents
125 125
      * @param        $time
126 126
      * @param string $format
127
-     * @param null   $timeoffset
127
+     * @param string   $timeoffset
128 128
      * @return string
129 129
      */
130 130
     public static function formatTimestamp($time, $format = 'l', $timeoffset = null)
Please login to merge, or discard this patch.
htdocs/class/xoopsmailer.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     // public
141 141
     /**
142
-     * @param null $value
142
+     * @param string $value
143 143
      */
144 144
     public function setTemplateDir($value = null)
145 145
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
     // private
155 155
     /**
156
-     * @return bool|string
156
+     * @return string|false
157 157
      */
158 158
     public function getTemplatePath()
159 159
     {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
     // public
179 179
     /**
180
-     * @param $value
180
+     * @param string $value
181 181
      */
182 182
     public function setTemplate($value)
183 183
     {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
     // public
227 227
     /**
228
-     * @param $value
228
+     * @param string $value
229 229
      */
230 230
     public function setSubject($value)
231 231
     {
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
     // public
236 236
     /**
237
-     * @param $value
237
+     * @param string $value
238 238
      */
239 239
     public function setBody($value)
240 240
     {
@@ -364,8 +364,8 @@  discard block
 block discarded – undo
364 364
     // private
365 365
     /**
366 366
      * @param $uid
367
-     * @param $subject
368
-     * @param $body
367
+     * @param string $subject
368
+     * @param string $body
369 369
      *
370 370
      * @return bool
371 371
      */
@@ -392,9 +392,9 @@  discard block
 block discarded – undo
392 392
      * Uses the new XoopsMultiMailer
393 393
      *
394 394
      * @param $email
395
-     * @param $subject
396
-     * @param $body
397
-     * @param $headers
395
+     * @param string $subject
396
+     * @param string $body
397
+     * @param string $headers
398 398
      *
399 399
      * @return bool
400 400
      */
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
     // abstract
562 562
     // to be overridden by lang specific mail class, if needed
563 563
     /**
564
-     * @param $text
564
+     * @param string $text
565 565
      *
566 566
      * @return mixed
567 567
      */
Please login to merge, or discard this patch.
htdocs/class/xoopsstory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     }
268 268
 
269 269
     /**
270
-     * @param $storyid
270
+     * @param integer $storyid
271 271
      */
272 272
     public function getStory($storyid)
273 273
     {
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     /**
358 358
      * @param string $format
359 359
      *
360
-     * @return mixed
360
+     * @return string
361 361
      */
362 362
     public function title($format = "Show")
363 363
     {
Please login to merge, or discard this patch.
htdocs/class/xoopstopic.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param $topicid
83
+     * @param integer $topicid
84 84
      */
85 85
     public function getTopic($topicid)
86 86
     {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     /**
230 230
      * @param string $format
231 231
      *
232
-     * @return mixed
232
+     * @return string
233 233
      */
234 234
     public function topic_title($format = "S")
235 235
     {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     /**
252 252
      * @param string $format
253 253
      *
254
-     * @return mixed
254
+     * @return string
255 255
      */
256 256
     public function topic_imgurl($format = "S")
257 257
     {
Please login to merge, or discard this patch.
htdocs/class/xoopstree.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     //sets the names of table, unique id, and parend id
43 43
     /**
44 44
      * @param $table_name
45
-     * @param $id_name
46
-     * @param $pid_name
45
+     * @param string $id_name
46
+     * @param string $pid_name
47 47
      */
48 48
     public function __construct($table_name, $id_name, $pid_name)
49 49
     {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     // returns an array of first child objects for a given id($sel_id)
58 58
     /**
59
-     * @param        $sel_id
59
+     * @param        integer $sel_id
60 60
      * @param string $order
61 61
      *
62 62
      * @return array
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     //returns an array of ALL child ids for a given id($sel_id)
107 107
     /**
108
-     * @param        $sel_id
108
+     * @param        integer $sel_id
109 109
      * @param string $order
110 110
      * @param array  $idarray
111 111
      *
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     //$preset_id is used to specify a preselected item
190 190
     //set $none to 1 to add a option with value 0
191 191
     /**
192
-     * @param        $title
192
+     * @param        string $title
193 193
      * @param string $order
194 194
      * @param int    $preset_id
195 195
      * @param int    $none
@@ -238,8 +238,8 @@  discard block
 block discarded – undo
238 238
 
239 239
     //generates nicely formatted linked path from the root id to a given id
240 240
     /**
241
-     * @param        $sel_id
242
-     * @param        $title
241
+     * @param        integer $sel_id
242
+     * @param        string $title
243 243
      * @param        $funcURL
244 244
      * @param string $path
245 245
      *
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
     /**
295 295
      * Enter description here...
296 296
      *
297
-     * @param int|\unknown_type    $sel_id
298
-     * @param string|\unknown_type $order
297
+     * @param integer    $sel_id
298
+     * @param string $order
299 299
      * @param array|\unknown_type  $parray
300 300
      *
301 301
      * @return unknown
@@ -323,8 +323,8 @@  discard block
 block discarded – undo
323 323
     /**
324 324
      * Enter description here...
325 325
      *
326
-     * @param  int|\unknown_type    $sel_id
327
-     * @param  string|\unknown_type $order
326
+     * @param  integer    $sel_id
327
+     * @param  string $order
328 328
      * @param  array|\unknown_type  $parray
329 329
      * @param  string|\unknown_type $r_prefix
330 330
      * @return unknown
Please login to merge, or discard this patch.
htdocs/class/zipdownloader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param string            $data
88 88
      * @param string            $filename
89
-     * @param int|\unknown_type $time
89
+     * @param integer $time
90 90
      */
91 91
     public function addFileData(&$data, $filename, $time = 0)
92 92
     {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      *
99 99
      * @param string     $data
100 100
      * @param string     $filename
101
-     * @param int|string $time
101
+     * @param integer $time
102 102
      */
103 103
     public function addBinaryFileData(&$data, $filename, $time = 0)
104 104
     {
Please login to merge, or discard this patch.
htdocs/Frameworks/art/functions.admin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * @param        $currentoption
21 21
      * @param string $breadcrumb
22 22
      *
23
-     * @return bool
23
+     * @return false|null
24 24
      */
25 25
     function loadModuleAdminMenu($currentoption = -1, $breadcrumb = "")
26 26
     {
Please login to merge, or discard this patch.