@@ -358,6 +358,9 @@ discard block |
||
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 |
||
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 ) { |
@@ -781,6 +787,9 @@ discard block |
||
781 | 787 | return $exclude_lazyload_array; |
782 | 788 | } |
783 | 789 | |
790 | + /** |
|
791 | + * @param string $target_class |
|
792 | + */ |
|
784 | 793 | public function inject_classes_in_tag( $tag, $target_class ) { |
785 | 794 | if ( strpos( $tag, 'class=' ) !== false ) { |
786 | 795 | $tag = preg_replace( '/(\sclass\s?=\s?("|\'))/', '$1' . $target_class, $tag ); |
@@ -810,6 +819,9 @@ discard block |
||
810 | 819 | return $webp_return; |
811 | 820 | } |
812 | 821 | |
822 | + /** |
|
823 | + * @return string |
|
824 | + */ |
|
813 | 825 | public function process_picture_tag( $in, $imgopt = false, $lazy = false ) { |
814 | 826 | // check if "<picture" is present and if filter allows us to process <picture>. |
815 | 827 | if ( strpos( $in, '<picture' ) === false || apply_filters( 'autoptimize_filter_imgopt_dopicture', true ) === false ) { |
@@ -1141,7 +1153,7 @@ discard block |
||
1141 | 1153 | /** |
1142 | 1154 | * Determines and returns the service launch status. |
1143 | 1155 | * |
1144 | - * @return bool |
|
1156 | + * @return null|boolean |
|
1145 | 1157 | */ |
1146 | 1158 | public function launch_ok() |
1147 | 1159 | { |