Completed
Push — master ( 286286...97f9b5 )
by frank
01:41
created
classes/autoptimizeImages.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -362,6 +362,9 @@  discard block
 block discarded – undo
362 362
         }
363 363
     }
364 364
 
365
+    /**
366
+     * @return string
367
+     */
365 368
     private function get_imgopt_base_url()
366 369
     {
367 370
         static $imgopt_base_url = null;
@@ -711,6 +714,9 @@  discard block
 block discarded – undo
711 714
         return $out;
712 715
     }
713 716
 
717
+    /**
718
+     * @param string $tag
719
+     */
714 720
     public function add_lazyload( $tag ) {
715 721
         // adds actual lazyload-attributes to an image node.
716 722
         if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) {
@@ -790,6 +796,9 @@  discard block
 block discarded – undo
790 796
         return $exclude_lazyload_array;
791 797
     }
792 798
 
799
+    /**
800
+     * @param string $target_class
801
+     */
793 802
     public function inject_classes_in_tag( $tag, $target_class ) {
794 803
         if ( strpos( $tag, 'class=' ) !== false ) {
795 804
             $tag = preg_replace( '/(\sclass\s?=\s?("|\'))/', '$1' . $target_class, $tag );
@@ -819,6 +828,9 @@  discard block
 block discarded – undo
819 828
         return $webp_return;
820 829
     }
821 830
 
831
+    /**
832
+     * @return string
833
+     */
822 834
     public function process_picture_tag( $in, $imgopt = false, $lazy = false ) {
823 835
         // check if "<picture" is present and if filter allows us to process <picture>.
824 836
         if ( strpos( $in, '<picture' ) === false || apply_filters( 'autoptimize_filter_imgopt_dopicture', true ) === false ) {
@@ -1140,7 +1152,7 @@  discard block
 block discarded – undo
1140 1152
     /**
1141 1153
      * Determines and returns the service launch status.
1142 1154
      *
1143
-     * @return bool
1155
+     * @return null|boolean
1144 1156
      */
1145 1157
     public function launch_ok()
1146 1158
     {
Please login to merge, or discard this patch.