Completed
Push — master ( 2ef6f7...6fcb0f )
by frank
01:45
created
classes/autoptimizeBase.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @param string $url URL to transform.
66 66
      *
67
-     * @return bool|string
67
+     * @return false|string
68 68
      */
69 69
     public function getpath( $url )
70 70
     {
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
     /**
611 611
      * Logs given `$data` for debugging purposes (when debug logging is on).
612 612
      *
613
-     * @param mixed $data Data to log.
613
+     * @param string $data Data to log.
614 614
      *
615 615
      * @return void
616 616
      */
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
      *
633 633
      * @param string $filepath Filepath.
634 634
      *
635
-     * @return bool|string to be minified code or false.
635
+     * @return false|string to be minified code or false.
636 636
      */
637 637
     protected function prepare_minify_single( $filepath )
638 638
     {
Please login to merge, or discard this patch.
classes/autoptimizeCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@
 block discarded – undo
434 434
      * size = total filesize (in bytes) of found files
435 435
      * timestamp = unix timestamp when the scan was last performed/finished.
436 436
      *
437
-     * @return array
437
+     * @return integer[]
438 438
      */
439 439
     protected static function stats_scan()
440 440
     {
Please login to merge, or discard this patch.
classes/autoptimizeUtils.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @param bool|null $override Allows overriding the decision.
16 16
      *
17
-     * @return bool
17
+     * @return boolean|null
18 18
      */
19 19
     public static function mbstring_available( $override = null )
20 20
     {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      *
131 131
      * @param bool $override Allows overriding the decision when needed.
132 132
      *
133
-     * @return bool
133
+     * @return boolean|null
134 134
      */
135 135
     public static function siteurl_not_root( $override = null )
136 136
     {
Please login to merge, or discard this patch.
tests/test-ao.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -128,6 +128,9 @@
 block discarded – undo
128 128
         parent::tearDown();
129 129
     }
130 130
 
131
+    /**
132
+     * @return string
133
+     */
131 134
     protected function get_test_markup()
132 135
     {
133 136
         $siteurl = $this->get_urls()['siteurl'];
Please login to merge, or discard this patch.
classes/autoptimizeConfig.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -798,6 +798,9 @@  discard block
 block discarded – undo
798 798
         return $preload_onload;
799 799
     }
800 800
 
801
+    /**
802
+     * @param string $key
803
+     */
801 804
     public function get( $key )
802 805
     {
803 806
         if ( ! is_array( $this->config ) ) {
@@ -824,6 +827,9 @@  discard block
 block discarded – undo
824 827
         return false;
825 828
     }
826 829
 
830
+    /**
831
+     * @param string $url
832
+     */
827 833
     private function get_futtta_feeds( $url ) {
828 834
         if ( $this->settings_screen_do_remote_http ) {
829 835
             $rss      = fetch_feed( $url );
Please login to merge, or discard this patch.
classes/autoptimizeImages.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -370,6 +370,9 @@  discard block
 block discarded – undo
370 370
         }
371 371
     }
372 372
 
373
+    /**
374
+     * @return string
375
+     */
373 376
     private function get_imgopt_base_url()
374 377
     {
375 378
         static $imgopt_base_url = null;
@@ -718,6 +721,9 @@  discard block
 block discarded – undo
718 721
         return $out;
719 722
     }
720 723
 
724
+    /**
725
+     * @param string $tag
726
+     */
721 727
     public function add_lazyload( $tag, $placeholder = '' ) {
722 728
         // adds actual lazyload-attributes to an image node.
723 729
         if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) {
@@ -897,6 +903,9 @@  discard block
 block discarded – undo
897 903
         return $out;
898 904
     }
899 905
 
906
+    /**
907
+     * @return string
908
+     */
900 909
     public function process_bgimage( $in ) {
901 910
         if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) {
902 911
             $out = preg_replace_callback(
@@ -1239,7 +1248,7 @@  discard block
 block discarded – undo
1239 1248
     /**
1240 1249
      * Determines and returns the service launch status.
1241 1250
      *
1242
-     * @return bool
1251
+     * @return null|boolean
1243 1252
      */
1244 1253
     public function launch_ok()
1245 1254
     {
Please login to merge, or discard this patch.
classes/autoptimizeMain.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
      *
297 297
      * @param bool $doing_tests Allows overriding the optimization of only
298 298
      *                          deciding once per request (for use in tests).
299
-     * @return bool
299
+     * @return boolean|null
300 300
      */
301 301
     public static function should_buffer( $doing_tests = false )
302 302
     {
Please login to merge, or discard this patch.
classes/autoptimizeCriticalCSSCore.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -335,6 +335,9 @@  discard block
 block discarded – undo
335 335
         }
336 336
     }
337 337
 
338
+    /**
339
+     * @param boolean $render
340
+     */
338 341
     public static function ao_ccss_key_status( $render ) {
339 342
         // Provide key status
340 343
         // Get key and key status.
@@ -539,6 +542,9 @@  discard block
 block discarded – undo
539 542
         return true;
540 543
     }
541 544
 
545
+    /**
546
+     * @param integer $lvl
547
+     */
542 548
     public static function ao_ccss_log( $msg, $lvl ) {
543 549
         // Commom logging facility
544 550
         // Attach debug option.
Please login to merge, or discard this patch.
classes/autoptimizeCriticalCSSCron.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -423,6 +423,9 @@  discard block
 block discarded – undo
423 423
         }
424 424
     }
425 425
 
426
+    /**
427
+     * @param boolean|string $debug
428
+     */
426 429
     public function ao_ccss_api_generate( $path, $debug, $dcode ) {
427 430
         // POST jobs to criticalcss.com and return responses
428 431
         // Get key and key status.
@@ -559,6 +562,9 @@  discard block
 block discarded – undo
559 562
         }
560 563
     }
561 564
 
565
+    /**
566
+     * @param boolean $debug
567
+     */
562 568
     public function ao_ccss_api_results( $jobid, $debug, $dcode ) {
563 569
         // GET jobs from criticalcss.com and return responses
564 570
         // Get key.
@@ -625,6 +631,9 @@  discard block
 block discarded – undo
625 631
         }
626 632
     }
627 633
 
634
+    /**
635
+     * @param boolean $review
636
+     */
628 637
     public function ao_ccss_save_file( $ccss, $target, $review ) {
629 638
         // Save critical CSS into the filesystem and return its filename
630 639
         // Prepare review mark.
Please login to merge, or discard this patch.