Completed
Push — master ( 4bd316...e57bb0 )
by frank
01:51
created
classes/autoptimizeImages.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -358,6 +358,9 @@  discard block
 block discarded – undo
358 358
         }
359 359
     }
360 360
 
361
+    /**
362
+     * @return string
363
+     */
361 364
     private function get_imgopt_base_url()
362 365
     {
363 366
         static $imgopt_base_url = null;
@@ -693,6 +696,9 @@  discard block
 block discarded – undo
693 696
         return $out;
694 697
     }
695 698
 
699
+    /**
700
+     * @param string $tag
701
+     */
696 702
     public function add_lazyload( $tag, $placeholder = '' ) {
697 703
         // adds actual lazyload-attributes to an image node.
698 704
         if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) {
@@ -812,6 +818,9 @@  discard block
 block discarded – undo
812 818
         return $webp_return;
813 819
     }
814 820
 
821
+    /**
822
+     * @return string
823
+     */
815 824
     public function process_picture_tag( $in, $imgopt = false, $lazy = false ) {
816 825
         // check if "<picture" is present and if filter allows us to process <picture>.
817 826
         if ( strpos( $in, '<picture' ) === false || apply_filters( 'autoptimize_filter_imgopt_dopicture', true ) === false ) {
@@ -1143,7 +1152,7 @@  discard block
 block discarded – undo
1143 1152
     /**
1144 1153
      * Determines and returns the service launch status.
1145 1154
      *
1146
-     * @return bool
1155
+     * @return null|boolean
1147 1156
      */
1148 1157
     public function launch_ok()
1149 1158
     {
Please login to merge, or discard this patch.