Completed
Push — master ( 5b581f...5da188 )
by frank
04:46
created
classes/autoptimizeImages.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -378,6 +378,9 @@  discard block
 block discarded – undo
378 378
         }
379 379
     }
380 380
 
381
+    /**
382
+     * @return string
383
+     */
381 384
     private function get_imgopt_base_url()
382 385
     {
383 386
         static $imgopt_base_url = null;
@@ -750,6 +753,9 @@  discard block
 block discarded – undo
750 753
         return $out;
751 754
     }
752 755
 
756
+    /**
757
+     * @param string $tag
758
+     */
753 759
     public function add_lazyload( $tag, $placeholder = '' ) {
754 760
         // adds actual lazyload-attributes to an image node.
755 761
         if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) {
@@ -832,6 +838,9 @@  discard block
 block discarded – undo
832 838
         }
833 839
     }
834 840
 
841
+    /**
842
+     * @return string
843
+     */
835 844
     public function get_cdn_url() {
836 845
         // getting CDN url here to avoid having to make bigger changes to autoptimizeBase.
837 846
         static $cdn_url = null;
@@ -935,6 +944,9 @@  discard block
 block discarded – undo
935 944
         return $out;
936 945
     }
937 946
 
947
+    /**
948
+     * @return string
949
+     */
938 950
     public function process_bgimage( $in ) {
939 951
         if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) {
940 952
             $out = preg_replace_callback(
@@ -1279,7 +1291,7 @@  discard block
 block discarded – undo
1279 1291
     /**
1280 1292
      * Determines and returns the service launch status.
1281 1293
      *
1282
-     * @return bool
1294
+     * @return null|boolean
1283 1295
      */
1284 1296
     public function launch_ok()
1285 1297
     {
Please login to merge, or discard this patch.