Completed
Push — master ( ebea82...02f2d8 )
by Michael
03:05 queued 17s
created
htdocs/class/xoopseditor/ckeditor/kcfinder/core/class/browser.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -872,6 +872,9 @@  discard block
 block discarded – undo
872 872
         return "";
873 873
     }
874 874
 
875
+    /**
876
+     * @param string $message
877
+     */
875 878
     protected function errorMsg($message, array $data=null) {
876 879
         if (in_array($this->action, array("thumb", "upload", "download", "downloadDir")))
877 880
             die($this->label($message, $data));
@@ -887,6 +890,9 @@  discard block
 block discarded – undo
887 890
         return htmlentities($str, null, strtoupper($this->charset));
888 891
     }
889 892
 
893
+    /**
894
+     * @param string $dir
895
+     */
890 896
     protected function downloadURL($url, $dir) {
891 897
 
892 898
         if (!preg_match(phpGet::$urlExpr, $url, $match))
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/ckeditor/kcfinder/core/class/uploader.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -328,6 +328,9 @@  discard block
 block discarded – undo
328 328
             $this->callBack($url, $message);
329 329
     }
330 330
 
331
+    /**
332
+     * @return string
333
+     */
331 334
     protected function normalizeFilename($filename) {
332 335
 
333 336
         if (isset($this->config['filenameChangeChars']) &&
@@ -341,6 +344,9 @@  discard block
 block discarded – undo
341 344
         return $filename;
342 345
     }
343 346
 
347
+    /**
348
+     * @param string $dirname
349
+     */
344 350
     protected function normalizeDirname($dirname) {
345 351
 
346 352
         if (isset($this->config['dirnameChangeChars']) &&
@@ -480,6 +486,9 @@  discard block
 block discarded – undo
480 486
         return (is_dir($path) && is_readable($path)) ? $return : false;
481 487
     }
482 488
 
489
+    /**
490
+     * @param string $ext
491
+     */
483 492
     protected function validateExtension($ext, $type) {
484 493
         $ext = trim(strtolower($ext));
485 494
         if (!isset($this->types[$type]))
@@ -505,11 +514,17 @@  discard block
 block discarded – undo
505 514
         return in_array($ext, $exts);
506 515
     }
507 516
 
517
+    /**
518
+     * @return string
519
+     */
508 520
     protected function getTypeFromPath($path) {
509 521
         return preg_match('/^([^\/]*)\/.*$/', $path, $patt)
510 522
             ? $patt[1] : $path;
511 523
     }
512 524
 
525
+    /**
526
+     * @param string $path
527
+     */
513 528
     protected function removeTypeFromPath($path) {
514 529
         return preg_match('/^[^\/]*\/(.*)$/', $path, $patt)
515 530
             ? $patt[1] : "";
@@ -693,6 +708,9 @@  discard block
 block discarded – undo
693 708
         die;
694 709
     }
695 710
 
711
+    /**
712
+     * @param string $url
713
+     */
696 714
     protected function callBack($url, $message="") {
697 715
         $message = text::jsValue($message);
698 716
 
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/ckeditor/kcfinder/lib/class_fastImage.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -199,6 +199,9 @@  discard block
 block discarded – undo
199 199
   }
200 200
 
201 201
 
202
+  /**
203
+   * @param integer $n
204
+   */
202 205
   private function getChars($n)
203 206
   {
204 207
     $response = null;
@@ -240,6 +243,9 @@  discard block
 block discarded – undo
240 243
   }
241 244
 
242 245
 
246
+  /**
247
+   * @param false|string $str
248
+   */
243 249
   private function readInt($str)
244 250
   {
245 251
     $size = unpack("C*", $str);
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/ckeditor/kcfinder/lib/class_image.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,6 @@
 block discarded – undo
181 181
 
182 182
 /** Resize and crop the image to fit in given resolution. Returns TRUE on
183 183
   * success or FALSE on failure
184
-  * @param mixed $src
185 184
   * @param integer $offset
186 185
   * @return bool */
187 186
     abstract public function resizeCrop($width, $height, $offset=false);
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/ckeditor/kcfinder/lib/class_image_gd.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -327,6 +327,11 @@
 block discarded – undo
327 327
         return imagecolorallocate($this->image, $r, $g, $b);
328 328
     }
329 329
 
330
+    /**
331
+     * @param integer $x1
332
+     * @param integer $y1
333
+     * @param boolean $color
334
+     */
330 335
     protected function imageFilledRectangle($x1, $y1, $x2, $y2, $color) {
331 336
         $color = $this->gdColor($color);
332 337
         if ($color === false) return false;
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/ckeditor/kcfinder/lib/class_zipFolder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@  discard block
 block discarded – undo
20 20
     protected $root;
21 21
     protected $ignored;
22 22
 
23
+    /**
24
+     * @param string $folder
25
+     */
23 26
     function __construct($file, $folder, $ignored=null) {
24 27
         $this->zip = new \ZipArchive();
25 28
 
@@ -41,6 +44,9 @@  discard block
 block discarded – undo
41 44
         $this->zip->close();
42 45
     }
43 46
 
47
+    /**
48
+     * @param string $folder
49
+     */
44 50
     function zip($folder, $parent=null) {
45 51
         $full_path = "{$this->root}$parent$folder";
46 52
         $zip_path = "$parent$folder";
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/ckeditor/kcfinder/lib/helper_phpGet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
     static public $urlExpr = '/^([a-z]+):\/\/((([\p{L}\d\-]+\.)+[\p{L}]{1,4})(\:(\d{1,6}))?(\/.*)*)?$/u';
21 21
     static public $socketExpr = '/^[A-Z]+\/\d+(\.\d+)\s+\d+\s+OK\s*([a-zA-Z0-9\-]+\:\s*[^\n]*\n)*\s*([a-f0-9]+\r?\n)?(.*)$/s';
22 22
 
23
+    /**
24
+     * @param string $file
25
+     */
23 26
     static public function get($url, $file=null, $method=null) {
24 27
         if ($file === true)
25 28
             $file = basename($url);
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/tinymce4/tinymce1.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
   * Creates one instance of the tinyMCE object
47 47
   *
48 48
   * @param    array     $config     The configuration
49
-  * @return   object    $instance   The instance of tinyMCE object
49
+  * @return   TinyMCE    $instance   The instance of tinyMCE object
50 50
   **/
51 51
 
52 52
     function &instance( $config )
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
   /**
72 72
   * Initializes the tinyMCE
73
-  * @return   true
73
+  * @return   boolean
74 74
   **/
75 75
 
76 76
     function init()
Please login to merge, or discard this patch.
external_plugins/filemanager/include/php_image_magician.php 1 patch
Doc Comments   +50 added lines patch added patch discarded remove patch
@@ -262,6 +262,9 @@  discard block
 block discarded – undo
262 262
   Resize
263 263
 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*/
264 264
 
265
+    /**
266
+     * @param string $newHeight
267
+     */
265 268
     public function resizeImage($newWidth, $newHeight, $option = 0, $sharpen = false, $autoRotate = false)
266 269
     # Author:     Jarrod Oberto
267 270
     # Date:       27-02-08
@@ -393,6 +396,9 @@  discard block
 block discarded – undo
393 396
 
394 397
 ## --------------------------------------------------------
395 398
 
399
+  /**
400
+   * @param resource $im
401
+   */
396 402
   private function keepTransparancy($width, $height, $im)
397 403
     # Author:     Jarrod Oberto
398 404
     # Date:       08-04-11
@@ -828,6 +834,9 @@  discard block
 block discarded – undo
828 834
 
829 835
 ## --------------------------------------------------------
830 836
 
837
+  /**
838
+   * @param integer $orig
839
+   */
831 840
   private function findSharp($orig, $final)
832 841
     # Author:     Ryan Rud (http://adryrun.com)
833 842
     # Purpose:    Find optimal sharpness
@@ -1629,6 +1638,11 @@  discard block
 block discarded – undo
1629 1638
 
1630 1639
   ## --------------------------------------------------------
1631 1640
 
1641
+  /**
1642
+   * @param string $side
1643
+   * @param integer $thickness
1644
+   * @param integer $padding
1645
+   */
1632 1646
   private function calculateCaptionBoxPosition($side, $thickness, $padding)
1633 1647
   {
1634 1648
     $positionArray = array();
@@ -1972,6 +1986,9 @@  discard block
 block discarded – undo
1972 1986
 
1973 1987
   ## --------------------------------------------------------
1974 1988
 
1989
+  /**
1990
+   * @param integer $dat
1991
+   */
1975 1992
   private function writeIPTC($dat, $value)
1976 1993
   {
1977 1994
 
@@ -1984,6 +2001,9 @@  discard block
 block discarded – undo
1984 2001
 
1985 2002
 ## --------------------------------------------------------
1986 2003
 
2004
+  /**
2005
+   * @param integer $rec
2006
+   */
1987 2007
   private function iptc_maketag($rec,$dat,$val)
1988 2008
   # Author:   Thies C. Arntzen
1989 2009
   # Purpose:    Function to format the new IPTC text
@@ -2090,6 +2110,10 @@  discard block
 block discarded – undo
2090 2110
 
2091 2111
   ## --------------------------------------------------------
2092 2112
 
2113
+  /**
2114
+   * @param integer $fontSize
2115
+   * @param integer $angle
2116
+   */
2093 2117
   private function getTextSize($fontSize, $angle, $font, $text)
2094 2118
   {
2095 2119
 
@@ -2163,6 +2187,9 @@  discard block
 block discarded – undo
2163 2187
 
2164 2188
   ## --------------------------------------------------------
2165 2189
 
2190
+  /**
2191
+   * @param integer $padding
2192
+   */
2166 2193
   private function calculatePosition($pos, $padding, $assetWidth, $assetHeight, $upperLeft = true)
2167 2194
   #
2168 2195
   # Author:   Jarrod Oberto
@@ -2727,6 +2754,9 @@  discard block
 block discarded – undo
2727 2754
 
2728 2755
 ## --------------------------------------------------------
2729 2756
 
2757
+  /**
2758
+   * @param boolean $isEnabled
2759
+   */
2730 2760
   private function checkInterlaceImage($isEnabled)
2731 2761
   # jpg will use progressive (they don't use interace)
2732 2762
   {
@@ -2879,6 +2909,10 @@  discard block
 block discarded – undo
2879 2909
 
2880 2910
   ## --------------------------------------------------------
2881 2911
 
2912
+  /**
2913
+   * @param integer $value
2914
+   * @param integer $originalMax
2915
+   */
2882 2916
   private function invertTransparency($value, $originalMax, $invert=true)
2883 2917
   # Purpose:  This does two things:
2884 2918
   #       1) Convert the range from 0-127 to 0-100
@@ -2904,6 +2938,9 @@  discard block
 block discarded – undo
2904 2938
 
2905 2939
   ## --------------------------------------------------------
2906 2940
 
2941
+  /**
2942
+   * @param resource $src
2943
+   */
2907 2944
   private function transparentImage($src)
2908 2945
   {
2909 2946
     // *** making images with white bg transparent
@@ -2932,6 +2969,9 @@  discard block
 block discarded – undo
2932 2969
 
2933 2970
   ## --------------------------------------------------------
2934 2971
 
2972
+  /**
2973
+   * @param string $needle
2974
+   */
2935 2975
   function checkStringStartsWith($needle, $haystack)
2936 2976
   # Check if a string starts with a specific pattern
2937 2977
   {
@@ -2942,6 +2982,9 @@  discard block
 block discarded – undo
2942 2982
   BMP SUPPORT (SAVING) - James Heinrich
2943 2983
 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*/
2944 2984
 
2985
+  /**
2986
+   * @param resource $gd_image
2987
+   */
2945 2988
   private function GD2BMPstring(&$gd_image)
2946 2989
     # Author:     James Heinrich
2947 2990
     # Purpose:    Save file as type bmp
@@ -2995,6 +3038,10 @@  discard block
 block discarded – undo
2995 3038
 
2996 3039
 ## --------------------------------------------------------
2997 3040
 
3041
+  /**
3042
+   * @param integer $x
3043
+   * @param integer $y
3044
+   */
2998 3045
   private function GetPixelColor(&$img, $x, $y)
2999 3046
     # Author:     James Heinrich
3000 3047
     # Purpose:
@@ -3013,6 +3060,9 @@  discard block
 block discarded – undo
3013 3060
 
3014 3061
 ## --------------------------------------------------------
3015 3062
 
3063
+  /**
3064
+   * @param integer $number
3065
+   */
3016 3066
   private function LittleEndian2String($number, $minbytes=1)
3017 3067
     # Author:     James Heinrich
3018 3068
     # Purpose:    BMP SUPPORT (SAVING)
Please login to merge, or discard this patch.