Completed
Push — master ( 7911d3...f93cb2 )
by frank
04:06 queued 42s
created
classes/autoptimizeImages.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,6 +361,9 @@  discard block
 block discarded – undo
361 361
         }
362 362
     }
363 363
 
364
+    /**
365
+     * @return string
366
+     */
364 367
     private function get_imgopt_base_url()
365 368
     {
366 369
         static $imgopt_base_url = null;
@@ -694,6 +697,9 @@  discard block
 block discarded – undo
694 697
         return $out;
695 698
     }
696 699
 
700
+    /**
701
+     * @param string $tag
702
+     */
697 703
     public function add_lazyload( $tag ) {
698 704
         // adds actual lazyload-attributes to an image node.
699 705
         if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) {
@@ -773,6 +779,9 @@  discard block
 block discarded – undo
773 779
         return $exclude_lazyload_array;
774 780
     }
775 781
 
782
+    /**
783
+     * @param string $target_class
784
+     */
776 785
     public function inject_classes_in_tag( $tag, $target_class ) {
777 786
         if ( strpos( $tag, 'class=' ) !== false ) {
778 787
             $tag = preg_replace( '/(\sclass\s?=\s?("|\'))/', '$1' . $target_class, $tag );
@@ -1088,7 +1097,7 @@  discard block
 block discarded – undo
1088 1097
     /**
1089 1098
      * Determines and returns the service launch status.
1090 1099
      *
1091
-     * @return bool
1100
+     * @return null|boolean
1092 1101
      */
1093 1102
     public function launch_ok()
1094 1103
     {
Please login to merge, or discard this patch.