Completed
Push — master ( 53ffad...1386e4 )
by frank
02:05
created
classes/autoptimizeBase.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -123,6 +123,10 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     // hide everything between noptimize-comment tags
126
+
127
+    /**
128
+     * @param string $noptimize_in
129
+     */
126 130
     protected function hide_noptimize($noptimize_in) {
127 131
         if ( preg_match( '/<!--\s?noptimize\s?-->/', $noptimize_in ) ) { 
128 132
             $noptimize_out = preg_replace_callback(
@@ -251,6 +255,9 @@  discard block
 block discarded – undo
251 255
         return $url;
252 256
     }
253 257
 
258
+    /**
259
+     * @param string $payload
260
+     */
254 261
     protected function inject_in_html($payload,$replaceTag) {
255 262
         if (strpos($this->content,$replaceTag[0])!== false) {
256 263
             if ($replaceTag[1]==="after") {
@@ -270,6 +277,9 @@  discard block
 block discarded – undo
270 277
         }
271 278
     }
272 279
     
280
+    /**
281
+     * @param string $tag
282
+     */
273 283
     protected function isremovable($tag, $removables) {
274 284
         foreach ($removables as $match) {
275 285
             if (strpos($tag,$match)!==false) {
@@ -280,6 +290,10 @@  discard block
 block discarded – undo
280 290
     }
281 291
     
282 292
     // inject already minified code in optimized JS/CSS
293
+
294
+    /**
295
+     * @return string
296
+     */
283 297
     protected function inject_minified($in) {
284 298
         if ( strpos( $in, '%%INJECTLATER%%' ) !== false ) {
285 299
             $out = preg_replace_callback(
Please login to merge, or discard this patch.
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/autoptimizeStyles.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -617,6 +617,9 @@
 block discarded – undo
617 617
         return $code;
618 618
     }
619 619
     
620
+    /**
621
+     * @param string $tag
622
+     */
620 623
     private function ismovable($tag) {
621 624
         if (!empty($this->whitelist)) {
622 625
             foreach ($this->whitelist as $match) {
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_fgo.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -698,6 +698,11 @@  discard block
 block discarded – undo
698 698
      * ---------------------------------------------------------------------------------------------
699 699
      */
700 700
 
701
+    /**
702
+     * @param double $v1
703
+     * @param double $v2
704
+     * @param integer $vh
705
+     */
701 706
     private function hue_to_rgb($v1, $v2, $vh)
702 707
     {
703 708
         $vh = $vh < 0 ? $vh + 1 : ($vh > 1 ? $vh - 1 : $vh);
@@ -712,6 +717,10 @@  discard block
 block discarded – undo
712 717
         return intval(floor(floatval($n) + 0.5), 10);
713 718
     }
714 719
 
720
+    /**
721
+     * @param integer $min
722
+     * @param integer $max
723
+     */
715 724
     private function clamp_number($n, $min, $max)
716 725
     {
717 726
         return min(max($n, $min), $max);
@@ -740,7 +749,7 @@  discard block
 block discarded – undo
740 749
      *
741 750
      * @param string   $str
742 751
      * @param int      $start index
743
-     * @param int|bool $end index (optional)
752
+     * @param integer $end index (optional)
744 753
      * @return string
745 754
      */
746 755
     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.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -698,6 +698,11 @@  discard block
 block discarded – undo
698 698
      * ---------------------------------------------------------------------------------------------
699 699
      */
700 700
 
701
+    /**
702
+     * @param double $v1
703
+     * @param double $v2
704
+     * @param integer $vh
705
+     */
701 706
     private function hue_to_rgb($v1, $v2, $vh)
702 707
     {
703 708
         $vh = $vh < 0 ? $vh + 1 : ($vh > 1 ? $vh - 1 : $vh);
@@ -712,6 +717,10 @@  discard block
 block discarded – undo
712 717
         return intval(floor(floatval($n) + 0.5), 10);
713 718
     }
714 719
 
720
+    /**
721
+     * @param integer $min
722
+     * @param integer $max
723
+     */
715 724
     private function clamp_number($n, $min, $max)
716 725
     {
717 726
         return min(max($n, $min), $max);
@@ -740,7 +749,7 @@  discard block
 block discarded – undo
740 749
      *
741 750
      * @param string   $str
742 751
      * @param int      $start index
743
-     * @param int|bool $end index (optional)
752
+     * @param integer $end index (optional)
744 753
      * @return string
745 754
      */
746 755
     private function str_slice($str, $start = 0, $end = FALSE)
Please login to merge, or discard this patch.