@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | * be inlined into a data: URI. Defaults to 4096, passed through |
283 | 283 | * `autoptimize_filter_css_datauri_maxsize` filter. |
284 | 284 | * |
285 | - * @return mixed |
|
285 | + * @return integer|null |
|
286 | 286 | */ |
287 | 287 | private function get_datauri_maxsize() |
288 | 288 | { |
@@ -303,6 +303,9 @@ discard block |
||
303 | 303 | return $max_size; |
304 | 304 | } |
305 | 305 | |
306 | + /** |
|
307 | + * @param false|string $url |
|
308 | + */ |
|
306 | 309 | private function check_datauri_exclude_list( $url ) |
307 | 310 | { |
308 | 311 | static $exclude_list = null; |
@@ -328,6 +331,9 @@ discard block |
||
328 | 331 | return $matched; |
329 | 332 | } |
330 | 333 | |
334 | + /** |
|
335 | + * @param false|string $path |
|
336 | + */ |
|
331 | 337 | private function build_or_get_datauri_image( $path ) |
332 | 338 | { |
333 | 339 | /** |
@@ -746,6 +752,11 @@ discard block |
||
746 | 752 | return true; |
747 | 753 | } |
748 | 754 | |
755 | + /** |
|
756 | + * @param string $code |
|
757 | + * |
|
758 | + * @return string |
|
759 | + */ |
|
749 | 760 | public function run_minifier_on( $code ) |
750 | 761 | { |
751 | 762 | if ( ! $this->alreadyminified ) { |
@@ -945,6 +956,9 @@ discard block |
||
945 | 956 | return $code; |
946 | 957 | } |
947 | 958 | |
959 | + /** |
|
960 | + * @param string $tag |
|
961 | + */ |
|
948 | 962 | private function ismovable( $tag ) |
949 | 963 | { |
950 | 964 | if ( ! $this->aggregate ) { |
@@ -1005,7 +1019,7 @@ discard block |
||
1005 | 1019 | * @param string $filepath Filepath. |
1006 | 1020 | * @param bool $cache_miss Optional. Force a cache miss. Default false. |
1007 | 1021 | * |
1008 | - * @return bool|string Url pointing to the minified css file or false. |
|
1022 | + * @return false|string Url pointing to the minified css file or false. |
|
1009 | 1023 | */ |
1010 | 1024 | public function minify_single( $filepath, $cache_miss = false ) |
1011 | 1025 | { |
@@ -1057,6 +1071,9 @@ discard block |
||
1057 | 1071 | $this->options = $options; |
1058 | 1072 | } |
1059 | 1073 | |
1074 | + /** |
|
1075 | + * @param string $name |
|
1076 | + */ |
|
1060 | 1077 | public function setOption( $name, $value ) |
1061 | 1078 | { |
1062 | 1079 | $this->options[$name] = $value; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @param bool|null $override Allows overriding the decision. |
16 | 16 | * |
17 | - * @return bool |
|
17 | + * @return boolean|null |
|
18 | 18 | */ |
19 | 19 | public static function mbstring_available( $override = null ) |
20 | 20 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * |
131 | 131 | * @param bool $override Allows overriding the decision when needed. |
132 | 132 | * |
133 | - * @return bool |
|
133 | + * @return boolean|null |
|
134 | 134 | */ |
135 | 135 | public static function siteurl_not_root( $override = null ) |
136 | 136 | { |
@@ -128,6 +128,9 @@ |
||
128 | 128 | parent::tearDown(); |
129 | 129 | } |
130 | 130 | |
131 | + /** |
|
132 | + * @return string |
|
133 | + */ |
|
131 | 134 | protected function get_test_markup() |
132 | 135 | { |
133 | 136 | $siteurl = $this->get_urls()['siteurl']; |