@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * @param string $data Data to cache. |
| 92 | 92 | * @param string $mime Mimetype. |
| 93 | 93 | * |
| 94 | - * @return void |
|
| 94 | + * @return boolean|null |
|
| 95 | 95 | */ |
| 96 | 96 | public function cache( $data, $mime ) |
| 97 | 97 | { |
@@ -489,7 +489,7 @@ discard block |
||
| 489 | 489 | * size = total filesize (in bytes) of found files |
| 490 | 490 | * timestamp = unix timestamp when the scan was last performed/finished. |
| 491 | 491 | * |
| 492 | - * @return array |
|
| 492 | + * @return integer[] |
|
| 493 | 493 | */ |
| 494 | 494 | protected static function stats_scan() |
| 495 | 495 | { |
@@ -384,6 +384,9 @@ discard block |
||
| 384 | 384 | } |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | + /** |
|
| 388 | + * @return string |
|
| 389 | + */ |
|
| 387 | 390 | private function get_imgopt_base_url() |
| 388 | 391 | { |
| 389 | 392 | static $imgopt_base_url = null; |
@@ -767,6 +770,9 @@ discard block |
||
| 767 | 770 | return $out; |
| 768 | 771 | } |
| 769 | 772 | |
| 773 | + /** |
|
| 774 | + * @param string $tag |
|
| 775 | + */ |
|
| 770 | 776 | public function add_lazyload( $tag, $placeholder = '' ) { |
| 771 | 777 | // adds actual lazyload-attributes to an image node. |
| 772 | 778 | $this->lazyload_counter++; |
@@ -858,6 +864,9 @@ discard block |
||
| 858 | 864 | } |
| 859 | 865 | } |
| 860 | 866 | |
| 867 | + /** |
|
| 868 | + * @return string |
|
| 869 | + */ |
|
| 861 | 870 | public function get_cdn_url() { |
| 862 | 871 | // getting CDN url here to avoid having to make bigger changes to autoptimizeBase. |
| 863 | 872 | static $cdn_url = null; |
@@ -961,6 +970,9 @@ discard block |
||
| 961 | 970 | return $out; |
| 962 | 971 | } |
| 963 | 972 | |
| 973 | + /** |
|
| 974 | + * @return string |
|
| 975 | + */ |
|
| 964 | 976 | public function process_bgimage( $in ) { |
| 965 | 977 | if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) { |
| 966 | 978 | $out = preg_replace_callback( |
@@ -1313,7 +1325,7 @@ discard block |
||
| 1313 | 1325 | /** |
| 1314 | 1326 | * Determines and returns the service launch status. |
| 1315 | 1327 | * |
| 1316 | - * @return bool |
|
| 1328 | + * @return null|boolean |
|
| 1317 | 1329 | */ |
| 1318 | 1330 | public function launch_ok() |
| 1319 | 1331 | { |