Completed
Push — master ( 64c9c6...973681 )
by Michael
02:15
created
assets/js/ml-slider/inc/metaslider.imagehelper.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@
 block discarded – undo
267 267
      *
268 268
      * @param  array $orig_size
269 269
      * @param  array $dest_size
270
-     * @param        $dest_file_name
270
+     * @param        string $dest_file_name
271 271
      * @return string
272 272
      */
273 273
     private function resize_image($orig_size, $dest_size, $dest_file_name)
Please login to merge, or discard this patch.
assets/js/ml-slider/inc/slide/metaslide.class.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @param $slide_id
36 36
      * @param $slider_id
37
-     * @return array complete array of slides
37
+     * @return string complete array of slides
38 38
      */
39 39
     public function get_slide($slide_id, $slider_id)
40 40
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-     * @param $slider_id
80
+     * @param integer $slider_id
81 81
      * @param $slide_id
82 82
      * @return
83 83
      */
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     }
88 88
 
89 89
     /**
90
-     * @param $slider_id
90
+     * @param integer $slider_id
91 91
      * @param $slide_id
92 92
      * @return bool
93 93
      */
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * Build image HTML
124 124
      *
125 125
      * @param  array $attributes
126
-     * @param        $content
126
+     * @param        string $content
127 127
      * @return string image HTML
128 128
      */
129 129
     public function build_anchor_tag($attributes, $content)
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      * If the meta exists, but the value is empty, delete it
213 213
      * If the meta exists, update it
214 214
      * @param $post_id
215
-     * @param $name
215
+     * @param string $name
216 216
      * @param $value
217 217
      */
218 218
     public function add_or_update_or_delete_meta($post_id, $name, $value)
Please login to merge, or discard this patch.
class/pear/Image/Transform.php 1 patch
Doc Comments   +13 added lines, -10 removed lines patch added patch discarded remove patch
@@ -285,11 +285,11 @@  discard block
 block discarded – undo
285 285
      *
286 286
      * If either is 0 it will keep the original size for that dimension
287 287
      *
288
-     * @param mixed $new_x   (0, number, percentage 10% or 0.1)
289
-     * @param mixed $new_y   (0, number, percentage 10% or 0.1)
288
+     * @param integer $new_x   (0, number, percentage 10% or 0.1)
289
+     * @param integer $new_y   (0, number, percentage 10% or 0.1)
290 290
      * @param array $options Options
291 291
      *
292
-     * @return mixed TRUE or PEAR_Error object on error
292
+     * @return PEAR_Error TRUE or PEAR_Error object on error
293 293
      * @access public
294 294
      */
295 295
     public function resize($new_x = 0, $new_y = 0, $options = null)
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
     /**
642 642
      * Returns the matching IMAGETYPE_* constant for a given image type
643 643
      *
644
-     * @param mixed $type String (GIF, JPG,...)
644
+     * @param string $type String (GIF, JPG,...)
645 645
      *
646 646
      * @return mixed string or integer or input on error
647 647
      * @access protected
@@ -694,10 +694,10 @@  discard block
 block discarded – undo
694 694
      *
695 695
      * If either parameter is 0 it will be scaled proportionally
696 696
      *
697
-     * @param mixed $new_size (0, number, percentage 10% or 0.1)
697
+     * @param integer $new_size (0, number, percentage 10% or 0.1)
698 698
      * @param int   $old_size
699 699
      *
700
-     * @return mixed Integer or PEAR_error
700
+     * @return integer Integer or PEAR_error
701 701
      * @access protected
702 702
      */
703 703
     public function _parse_size($new_size, $old_size)
@@ -1017,7 +1017,7 @@  discard block
 block discarded – undo
1017 1017
      * @param string $type Image type (GIF, PNG, JPEG...)
1018 1018
      * @param string $mode 'r' for read, 'w' for write, 'rw' for both
1019 1019
      *
1020
-     * @return TRUE if type (and mode) is supported FALSE otherwise
1020
+     * @return boolean if type (and mode) is supported FALSE otherwise
1021 1021
      * @access public
1022 1022
      */
1023 1023
     public function supportsType($type, $mode = 'rw')
@@ -1062,7 +1062,7 @@  discard block
 block discarded – undo
1062 1062
      *
1063 1063
      * @param string $colorhex A color following the #FFFFFF format
1064 1064
      *
1065
-     * @return array 3-element array with 0-255 values
1065
+     * @return resource 3-element array with 0-255 values
1066 1066
      * @access public
1067 1067
      *
1068 1068
      * @see    rgb2colorname
@@ -1077,6 +1077,9 @@  discard block
 block discarded – undo
1077 1077
         return array($r, $g, $b, 'type' => 'RGB');
1078 1078
     }
1079 1079
 
1080
+    /**
1081
+     * @param string $type
1082
+     */
1080 1083
     public function _send_display_headers($type)
1081 1084
     {
1082 1085
         // Find the filename of the original image:
@@ -1091,7 +1094,7 @@  discard block
 block discarded – undo
1091 1094
      *
1092 1095
      * @param array $color 3-element array with 0-255 values
1093 1096
      *
1094
-     * @return mixed A color following the #FFFFFF format or FALSE
1097
+     * @return false|string A color following the #FFFFFF format or FALSE
1095 1098
      *               if the array couldn't be converted
1096 1099
      * @access public
1097 1100
      *
@@ -1265,7 +1268,7 @@  discard block
 block discarded – undo
1265 1268
      *
1266 1269
      * @param string $colorOf one of 'canvasColor', 'pencilColor', 'fontColor'
1267 1270
      * @param array  $options configuration options
1268
-     * @param array  $default default value to return if color not found
1271
+     * @param integer[]  $default default value to return if color not found
1269 1272
      *
1270 1273
      * @return array an RGB color array
1271 1274
      * @access protected
Please login to merge, or discard this patch.
class/pear/Image/Transform/Driver/GD.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     /**
268 268
      * Horizontal mirroring
269 269
      *
270
-     * @return mixed TRUE or PEAR_Error object on error
270
+     * @return boolean TRUE or PEAR_Error object on error
271 271
      * @access public
272 272
      * @see    flip()
273 273
      **/
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     /**
287 287
      * Vertical mirroring
288 288
      *
289
-     * @return TRUE or PEAR Error object on error
289
+     * @return boolean or PEAR Error object on error
290 290
      * @access public
291 291
      * @see    mirror()
292 292
      **/
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
      * Helper method to save to a file or output the image
438 438
      *
439 439
      * @param string $filename  the name of the file to write to (blank to output)
440
-     * @param string $types     define the output format, default
440
+     * @param string $type     define the output format, default
441 441
      *                          is the current used format
442 442
      * @param int    $quality   output DPI, default is 75
443 443
      *
Please login to merge, or discard this patch.
class/pear/Image/Transform/Driver/IM.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      *
172 172
      * @param   int     angle   rotation angle
173 173
      * @param   array   options no option allowed
174
-     * @return mixed TRUE or a PEAR error object on error
174
+     * @return boolean TRUE or a PEAR error object on error
175 175
      */
176 176
     public function rotate($angle, $options = null)
177 177
     {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      * @param int x X-coordinate to crop at
195 195
      * @param int y Y-coordinate to crop at
196 196
      *
197
-     * @return mixed TRUE or a PEAR error object on error
197
+     * @return boolean TRUE or a PEAR error object on error
198 198
      */
199 199
     public function crop($width, $height, $x = 0, $y = 0)
200 200
     {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      *                                                  before drawing the text
226 226
      *                                                  )
227 227
      *
228
-     * @return mixed TRUE or a PEAR error object on error
228
+     * @return boolean TRUE or a PEAR error object on error
229 229
      * @see PEAR::isError()
230 230
      */
231 231
     public function addText($params)
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      *
252 252
      * @access public
253 253
      * @param float $outputgamma
254
-     * @return mixed TRUE or a PEAR error object on error
254
+     * @return boolean TRUE or a PEAR error object on error
255 255
      */
256 256
     public function gamma($outputgamma = 1.0)
257 257
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * Convert the image to greyscale
267 267
      *
268 268
      * @access public
269
-     * @return mixed TRUE or a PEAR error object on error
269
+     * @return boolean TRUE or a PEAR error object on error
270 270
      */
271 271
     public function greyscale()
272 272
     {
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      * Horizontal mirroring
280 280
      *
281 281
      * @access public
282
-     * @return TRUE or PEAR Error object on error
282
+     * @return boolean or PEAR Error object on error
283 283
      */
284 284
     public function mirror()
285 285
     {
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
      * Vertical mirroring
298 298
      *
299 299
      * @access public
300
-     * @return TRUE or PEAR Error object on error
300
+     * @return boolean or PEAR Error object on error
301 301
      */
302 302
     public function flip()
303 303
     {
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      * @param string type (JPEG,PNG...);
357 357
      * @param int    quality 75
358 358
      *
359
-     * @return mixed TRUE or a PEAR error object on error
359
+     * @return boolean TRUE or a PEAR error object on error
360 360
      */
361 361
     public function display($type = '', $quality = null)
362 362
     {
Please login to merge, or discard this patch.
class/pear/Image/Transform/Driver/Imlib.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @param string filename
93 93
      *
94
-     * @return mixed TRUE or a PEAR error object on error
94
+     * @return boolean TRUE or a PEAR error object on error
95 95
      * @see PEAR::isError()
96 96
      */
97 97
     public function load($image)
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      *                                  'angle' A imlib direction constant
126 126
      *                                  )
127 127
      *
128
-     * @return TRUE or PEAR Error object on error
128
+     * @return boolean or PEAR Error object on error
129 129
      * @see PEAR::isError()
130 130
      */
131 131
     public function addText($params)
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      *
166 166
      * @param int $angle Rotation angle
167 167
      *
168
-     * @return TRUE or PEAR Error object on error
168
+     * @return boolean or PEAR Error object on error
169 169
      */
170 170
     public function rotate($angle)
171 171
     {
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      * Gets the image details
344 344
      *
345 345
      * @access private
346
-     * @return TRUE on success or PEAR Error object on error
346
+     * @return boolean on success or PEAR Error object on error
347 347
      */
348 348
     public function _get_image_details()
349 349
     {
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     /**
361 361
      * Horizontal mirroring
362 362
      *
363
-     * @return TRUE on success, PEAR Error object on error
363
+     * @return boolean on success, PEAR Error object on error
364 364
      */
365 365
     public function mirror()
366 366
     {
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     /**
373 373
      * Vertical mirroring
374 374
      *
375
-     * @return TRUE on success, PEAR Error object on error
375
+     * @return boolean on success, PEAR Error object on error
376 376
      */
377 377
     public function flip()
378 378
     {
Please login to merge, or discard this patch.
class/pear/Image/Transform/Driver/NetPBM.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
     /**
329 329
      * Image_Transform_Driver_NetPBM::_postProcess()
330 330
      *
331
-     * @param $type
331
+     * @param string $type
332 332
      * @param $quality
333 333
      * @return string A chain of shell command
334 334
      * @link http://netpbm.sourceforge.net/doc/directory.html
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      *
491 491
      * @param string $type    (jpeg,png...);
492 492
      * @param int    $quality 75
493
-     * @return TRUE or PEAR Error object on error
493
+     * @return boolean or PEAR Error object on error
494 494
      */
495 495
     public function display($type = null, $quality = null)
496 496
     {
Please login to merge, or discard this patch.
class/pear/PEAR.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
      * Use this function to register a shutdown method for static
260 260
      * classes.
261 261
      *
262
-     * @param  mixed $func The function name (or array of class/method) to call
262
+     * @param  string[] $func The function name (or array of class/method) to call
263 263
      * @param  mixed $args The arguments to pass to the function
264 264
      *
265 265
      * @return void
Please login to merge, or discard this patch.
class/pear/System.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
      * Supports multiple files and dirs and also recursive deletes
207 207
      *
208 208
      * @param    string $args the arguments for rm
209
-     * @return   mixed   PEAR_Error or true for success
209
+     * @return   boolean   PEAR_Error or true for success
210 210
      * @static
211 211
      * @access   public
212 212
      */
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
      *           c:\windows\temp or /tmp will be used.
396 396
      *
397 397
      * @param   string $args The arguments
398
-     * @return  mixed   the full path of the created (file|dir) or false
398
+     * @return  boolean|string   the full path of the created (file|dir) or false
399 399
      * @see System::tmpdir()
400 400
      */
401 401
     public static function mktemp($args = null)
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
      * @param string $program  The command to search for
498 498
      * @param mixed  $fallback Value to return if $program is not found
499 499
      *
500
-     * @return mixed A string with the full path or false if not found
500
+     * @return string A string with the full path or false if not found
501 501
      * @author Stig Bakken <[email protected]>
502 502
      */
503 503
     public static function which($program, $fallback = false)
Please login to merge, or discard this patch.