@@ -190,7 +190,7 @@ |
||
190 | 190 | * @since 4.3.0 |
191 | 191 | * |
192 | 192 | * @param $meta_tags |
193 | - * @return array |
|
193 | + * @return string[] |
|
194 | 194 | */ |
195 | 195 | function _custom_site_icon_meta_tag( $meta_tags ) { |
196 | 196 | $meta_tags[] = sprintf( '<link rel="apple-touch-icon" sizes="150x150" href="%s" />', esc_url( get_site_icon_url( 150 ) ) ); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * Helper assertion for testing alpha on images using GD library |
39 | 39 | * |
40 | 40 | * @param string $image_path |
41 | - * @param array $point array(x,y) |
|
41 | + * @param integer[] $point array(x,y) |
|
42 | 42 | * @param int $alpha |
43 | 43 | */ |
44 | 44 | protected function assertImageAlphaAtPointGD( $image_path, $point, $alpha ) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * Helper assertion for testing alpha on images using Imagick |
55 | 55 | * |
56 | 56 | * @param string $image_path |
57 | - * @param array $point array(x,y) |
|
57 | + * @param integer[] $point array(x,y) |
|
58 | 58 | * @param int $expected |
59 | 59 | */ |
60 | 60 | protected function assertImageAlphaAtPointImagick( $image_path, $point, $expected ) { |
@@ -15,6 +15,9 @@ |
||
15 | 15 | parent::tearDown(); |
16 | 16 | } |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $file |
|
20 | + */ |
|
18 | 21 | public function _make_attachment( $file, $parent_post_id = 0 ) { |
19 | 22 | $contents = file_get_contents( $file ); |
20 | 23 | $upload = wp_upload_bits( basename( $file ), null, $contents ); |
@@ -163,6 +163,9 @@ |
||
163 | 163 | |
164 | 164 | /** |
165 | 165 | * Function to help out the tests |
166 | + * @param string $file |
|
167 | + * @param integer $width |
|
168 | + * @param integer $height |
|
166 | 169 | */ |
167 | 170 | protected function resize_helper( $file, $width, $height, $crop = false ) { |
168 | 171 | $editor = wp_get_image_editor( $file ); |
@@ -1201,6 +1201,8 @@ |
||
1201 | 1201 | |
1202 | 1202 | /** |
1203 | 1203 | * Helper function to move the src image to the first position in the expected srcset string. |
1204 | + * @param string $srcset |
|
1205 | + * @param string|false $src_url |
|
1204 | 1206 | */ |
1205 | 1207 | function _src_first( $srcset, $src_url, $src_width ) { |
1206 | 1208 | $src_string = $src_url . ' ' . $src_width . 'w'; |
@@ -45,7 +45,6 @@ |
||
45 | 45 | * |
46 | 46 | * @param string $flag The name of the flag being set or unset on a site. |
47 | 47 | * @param string $flag_value '0' or '1'. The value of the flag being set. |
48 | - * @param string $action The hook expected to fire for the flag name and flag combination. |
|
49 | 48 | * |
50 | 49 | * @dataProvider data_flag_hooks |
51 | 50 | */ |
@@ -49,6 +49,11 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | // set_user_setting bails if `headers_sent()` is true |
52 | + |
|
53 | + /** |
|
54 | + * @param string $name |
|
55 | + * @param string $value |
|
56 | + */ |
|
52 | 57 | function set_user_setting( $name, $value ) { |
53 | 58 | $all_user_settings = get_all_user_settings(); |
54 | 59 | $all_user_settings[ $name ] = $value; |
@@ -36,6 +36,10 @@ |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | // helper function: return the timestamp(s) of cron jobs for the specified hook and post |
39 | + |
|
40 | + /** |
|
41 | + * @param string $hook |
|
42 | + */ |
|
39 | 43 | function _next_schedule_for_post($hook, $id) { |
40 | 44 | return wp_next_scheduled('publish_future_post', array(0=>intval($id))); |
41 | 45 | } |
@@ -24,6 +24,9 @@ |
||
24 | 24 | parent::tearDown(); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $terms |
|
29 | + */ |
|
27 | 30 | function get_search_results( $terms ) { |
28 | 31 | $args = http_build_query( array( 's' => $terms, 'post_type' => $this->post_type ) ); |
29 | 32 | return $this->q->query( $args ); |