@@ -378,6 +378,9 @@ discard block |
||
378 | 378 | } |
379 | 379 | } |
380 | 380 | |
381 | + /** |
|
382 | + * @return string |
|
383 | + */ |
|
381 | 384 | private function get_imgopt_base_url() |
382 | 385 | { |
383 | 386 | static $imgopt_base_url = null; |
@@ -750,6 +753,9 @@ discard block |
||
750 | 753 | return $out; |
751 | 754 | } |
752 | 755 | |
756 | + /** |
|
757 | + * @param string $tag |
|
758 | + */ |
|
753 | 759 | public function add_lazyload( $tag, $placeholder = '' ) { |
754 | 760 | // adds actual lazyload-attributes to an image node. |
755 | 761 | if ( str_ireplace( $this->get_lazyload_exclusions(), '', $tag ) === $tag ) { |
@@ -832,6 +838,9 @@ discard block |
||
832 | 838 | } |
833 | 839 | } |
834 | 840 | |
841 | + /** |
|
842 | + * @return string |
|
843 | + */ |
|
835 | 844 | public function get_cdn_url() { |
836 | 845 | // getting CDN url here to avoid having to make bigger changes to autoptimizeBase. |
837 | 846 | static $cdn_url = null; |
@@ -935,6 +944,9 @@ discard block |
||
935 | 944 | return $out; |
936 | 945 | } |
937 | 946 | |
947 | + /** |
|
948 | + * @return string |
|
949 | + */ |
|
938 | 950 | public function process_bgimage( $in ) { |
939 | 951 | if ( strpos( $in, 'background-image:' ) !== false && apply_filters( 'autoptimize_filter_imgopt_lazyload_backgroundimages', true ) ) { |
940 | 952 | $out = preg_replace_callback( |
@@ -1279,7 +1291,7 @@ discard block |
||
1279 | 1291 | /** |
1280 | 1292 | * Determines and returns the service launch status. |
1281 | 1293 | * |
1282 | - * @return bool |
|
1294 | + * @return null|boolean |
|
1283 | 1295 | */ |
1284 | 1296 | public function launch_ok() |
1285 | 1297 | { |
@@ -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 | { |