@@ -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 | { |
@@ -382,6 +382,9 @@ discard block |
||
382 | 382 | } |
383 | 383 | } |
384 | 384 | |
385 | + /** |
|
386 | + * @return string |
|
387 | + */ |
|
385 | 388 | private function get_imgopt_base_url() |
386 | 389 | { |
387 | 390 | static $imgopt_base_url = null; |
@@ -873,6 +876,9 @@ discard block |
||
873 | 876 | } |
874 | 877 | } |
875 | 878 | |
879 | + /** |
|
880 | + * @return string |
|
881 | + */ |
|
876 | 882 | public function get_cdn_url() { |
877 | 883 | // getting CDN url here to avoid having to make bigger changes to autoptimizeBase. |
878 | 884 | static $cdn_url = null; |
@@ -976,6 +982,9 @@ discard block |
||
976 | 982 | return $out; |
977 | 983 | } |
978 | 984 | |
985 | + /** |
|
986 | + * @return string |
|
987 | + */ |
|
979 | 988 | public function process_bgimage( $in ) { |
980 | 989 | if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) { |
981 | 990 | $out = preg_replace_callback( |
@@ -1345,7 +1354,7 @@ discard block |
||
1345 | 1354 | /** |
1346 | 1355 | * Determines and returns the service launch status. |
1347 | 1356 | * |
1348 | - * @return bool |
|
1357 | + * @return null|boolean |
|
1349 | 1358 | */ |
1350 | 1359 | public function launch_ok() |
1351 | 1360 | { |