Completed
Push — master ( 1ea4c6...65cd2d )
by frank
02:17
created
classes/autoptimizeCache.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
         return false;
43 43
     }
44 44
     
45
+    /**
46
+     * @param string $mime
47
+     */
45 48
     public function cache($code,$mime) {
46 49
         if($this->nogzip == false) {
47 50
             $file = ($this->delayed ? 'delayed.php' : 'default.php');
@@ -240,6 +243,9 @@  discard block
 block discarded – undo
240 243
         return true;
241 244
     }
242 245
 
246
+    /**
247
+     * @param string $dir
248
+     */
243 249
     static function checkCacheDir($dir) {
244 250
         // Check and create if not exists
245 251
         if(!file_exists($dir))    {
Please login to merge, or discard this patch.
classes/autoptimizeConfig.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -625,6 +625,9 @@
 block discarded – undo
625 625
         return false;
626 626
     }
627 627
 
628
+    /**
629
+     * @param string $url
630
+     */
628 631
     private function getFutttaFeeds($url) {
629 632
         if (apply_filters('autoptimize_settingsscreen_remotehttp',true)) {
630 633
             $rss = fetch_feed( $url );
Please login to merge, or discard this patch.
classes/external/php/jsmin-1.1.1.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@
 block discarded – undo
59 59
 
60 60
   // -- Public Static Methods --------------------------------------------------
61 61
 
62
+  /**
63
+   * @param string $js
64
+   */
62 65
   public static function minify($js) {
63 66
     $jsmin = new JSMin($js);
64 67
     return $jsmin->min();
Please login to merge, or discard this patch.
classes/external/php/minify-css-compressor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * 
54 54
      * @param array $options (currently ignored)
55 55
      * 
56
-     * @return null
56
+     * @return string
57 57
      */
58 58
     private function __construct($options) {
59 59
         $this->_options = $options;
Please login to merge, or discard this patch.
classes/external/php/yui-php-cssmin-2.4.8-4.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -686,6 +686,11 @@  discard block
 block discarded – undo
686 686
      * ---------------------------------------------------------------------------------------------
687 687
      */
688 688
 
689
+    /**
690
+     * @param double $v1
691
+     * @param double $v2
692
+     * @param integer $vh
693
+     */
689 694
     private function hue_to_rgb($v1, $v2, $vh)
690 695
     {
691 696
         $vh = $vh < 0 ? $vh + 1 : ($vh > 1 ? $vh - 1 : $vh);
@@ -700,6 +705,10 @@  discard block
 block discarded – undo
700 705
         return intval(floor(floatval($n) + 0.5), 10);
701 706
     }
702 707
 
708
+    /**
709
+     * @param integer $min
710
+     * @param integer $max
711
+     */
703 712
     private function clamp_number($n, $min, $max)
704 713
     {
705 714
         return min(max($n, $min), $max);
@@ -728,7 +737,7 @@  discard block
 block discarded – undo
728 737
      *
729 738
      * @param string   $str
730 739
      * @param int      $start index
731
-     * @param int|bool $end index (optional)
740
+     * @param integer $end index (optional)
732 741
      * @return string
733 742
      */
734 743
     private function str_slice($str, $start = 0, $end = FALSE)
Please login to merge, or discard this patch.
classes/external/php/yui-php-cssmin-2.4.8-4_fgo.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -686,6 +686,11 @@  discard block
 block discarded – undo
686 686
      * ---------------------------------------------------------------------------------------------
687 687
      */
688 688
 
689
+    /**
690
+     * @param double $v1
691
+     * @param double $v2
692
+     * @param integer $vh
693
+     */
689 694
     private function hue_to_rgb($v1, $v2, $vh)
690 695
     {
691 696
         $vh = $vh < 0 ? $vh + 1 : ($vh > 1 ? $vh - 1 : $vh);
@@ -700,6 +705,10 @@  discard block
 block discarded – undo
700 705
         return intval(floor(floatval($n) + 0.5), 10);
701 706
     }
702 707
 
708
+    /**
709
+     * @param integer $min
710
+     * @param integer $max
711
+     */
703 712
     private function clamp_number($n, $min, $max)
704 713
     {
705 714
         return min(max($n, $min), $max);
@@ -728,7 +737,7 @@  discard block
 block discarded – undo
728 737
      *
729 738
      * @param string   $str
730 739
      * @param int      $start index
731
-     * @param int|bool $end index (optional)
740
+     * @param integer $end index (optional)
732 741
      * @return string
733 742
      */
734 743
     private function str_slice($str, $start = 0, $end = FALSE)
Please login to merge, or discard this patch.
classes/autoptimizeBase.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -139,6 +139,10 @@  discard block
 block discarded – undo
139 139
     }
140 140
 
141 141
     // hide everything between noptimize-comment tags
142
+
143
+    /**
144
+     * @param string $noptimize_in
145
+     */
142 146
     protected function hide_noptimize($noptimize_in) {
143 147
         if ( preg_match( '/<!--\s?noptimize\s?-->/', $noptimize_in ) ) { 
144 148
             $noptimize_out = preg_replace_callback(
@@ -267,6 +271,9 @@  discard block
 block discarded – undo
267 271
         return $url;
268 272
     }
269 273
 
274
+    /**
275
+     * @param string $payload
276
+     */
270 277
     protected function inject_in_html($payload,$replaceTag) {
271 278
         if (strpos($this->content,$replaceTag[0])!== false) {
272 279
             if ($replaceTag[1]==="after") {
@@ -286,6 +293,9 @@  discard block
 block discarded – undo
286 293
         }
287 294
     }
288 295
     
296
+    /**
297
+     * @param string $tag
298
+     */
289 299
     protected function isremovable($tag, $removables) {
290 300
         foreach ($removables as $match) {
291 301
             if (strpos($tag,$match)!==false) {
@@ -296,6 +306,10 @@  discard block
 block discarded – undo
296 306
     }
297 307
     
298 308
     // inject already minified code in optimized JS/CSS
309
+
310
+    /**
311
+     * @return string
312
+     */
299 313
     protected function inject_minified($in) {
300 314
         if ( strpos( $in, '%%INJECTLATER%%' ) !== false ) {
301 315
             $out = preg_replace_callback(
@@ -340,6 +354,9 @@  discard block
 block discarded – undo
340 354
         return $out;
341 355
     }
342 356
     
357
+    /**
358
+     * @param string $pathIn
359
+     */
343 360
     protected function minify_single($pathIn) {
344 361
 		// determine JS or CSS and set var (also mimetype), return false if neither
345 362
 		if ( $this->str_ends_in($pathIn,".js") === true ) {
@@ -403,6 +420,9 @@  discard block
 block discarded – undo
403 420
 		return $_CachedMinifiedUrl;
404 421
 	}
405 422
 	
423
+	/**
424
+	 * @param string $needle
425
+	 */
406 426
 	protected function str_ends_in($haystack,$needle) {
407 427
 		$needleLength = strlen($needle);
408 428
 		$haystackLength = strlen($haystack);
Please login to merge, or discard this patch.
classes/autoptimizeStyles.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -656,6 +656,9 @@
 block discarded – undo
656 656
         return $code;
657 657
     }
658 658
     
659
+    /**
660
+     * @param string $tag
661
+     */
659 662
     private function ismovable($tag) {
660 663
 		if (apply_filters('autoptimize_filter_css_dontaggregate',false)) {
661 664
 			return false;
Please login to merge, or discard this patch.