@@ -798,6 +798,9 @@ discard block |
||
| 798 | 798 | return $preload_onload; |
| 799 | 799 | } |
| 800 | 800 | |
| 801 | + /** |
|
| 802 | + * @param string $key |
|
| 803 | + */ |
|
| 801 | 804 | public function get( $key ) |
| 802 | 805 | { |
| 803 | 806 | if ( ! is_array( $this->config ) ) { |
@@ -824,6 +827,9 @@ discard block |
||
| 824 | 827 | return false; |
| 825 | 828 | } |
| 826 | 829 | |
| 830 | + /** |
|
| 831 | + * @param string $url |
|
| 832 | + */ |
|
| 827 | 833 | private function get_futtta_feeds( $url ) { |
| 828 | 834 | if ( $this->settings_screen_do_remote_http ) { |
| 829 | 835 | $rss = fetch_feed( $url ); |
@@ -370,6 +370,9 @@ discard block |
||
| 370 | 370 | } |
| 371 | 371 | } |
| 372 | 372 | |
| 373 | + /** |
|
| 374 | + * @return string |
|
| 375 | + */ |
|
| 373 | 376 | private function get_imgopt_base_url() |
| 374 | 377 | { |
| 375 | 378 | static $imgopt_base_url = null; |
@@ -718,6 +721,9 @@ discard block |
||
| 718 | 721 | return $out; |
| 719 | 722 | } |
| 720 | 723 | |
| 724 | + /** |
|
| 725 | + * @param string $tag |
|
| 726 | + */ |
|
| 721 | 727 | public function add_lazyload( $tag, $placeholder = '' ) { |
| 722 | 728 | // adds actual lazyload-attributes to an image node. |
| 723 | 729 | if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) { |
@@ -897,6 +903,9 @@ discard block |
||
| 897 | 903 | return $out; |
| 898 | 904 | } |
| 899 | 905 | |
| 906 | + /** |
|
| 907 | + * @return string |
|
| 908 | + */ |
|
| 900 | 909 | public function process_bgimage( $in ) { |
| 901 | 910 | if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) { |
| 902 | 911 | $out = preg_replace_callback( |
@@ -1239,7 +1248,7 @@ discard block |
||
| 1239 | 1248 | /** |
| 1240 | 1249 | * Determines and returns the service launch status. |
| 1241 | 1250 | * |
| 1242 | - * @return bool |
|
| 1251 | + * @return null|boolean |
|
| 1243 | 1252 | */ |
| 1244 | 1253 | public function launch_ok() |
| 1245 | 1254 | { |
@@ -296,7 +296,7 @@ |
||
| 296 | 296 | * |
| 297 | 297 | * @param bool $doing_tests Allows overriding the optimization of only |
| 298 | 298 | * deciding once per request (for use in tests). |
| 299 | - * @return bool |
|
| 299 | + * @return boolean|null |
|
| 300 | 300 | */ |
| 301 | 301 | public static function should_buffer( $doing_tests = false ) |
| 302 | 302 | { |