@@ -9,6 +9,9 @@ |
||
9 | 9 | |
10 | 10 | class Differences extends PersistentList { |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $path |
|
14 | + */ |
|
12 | 15 | private function slashit( $path ) { |
13 | 16 | $path .= ( substr( $path, -1 ) == '/' ? '' : '/' ); |
14 | 17 | return $path; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * Convenience function for grabbing options from params->options |
119 | 119 | * |
120 | 120 | * @param string $option the option to grab. |
121 | - * @param mixed $default (optional). |
|
121 | + * @param boolean $default (optional). |
|
122 | 122 | * @return option or $default if not set |
123 | 123 | * |
124 | 124 | * @since 4.5.0 |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | /** |
711 | 711 | * Check the reasons to bail before we attempt to insert ads. |
712 | 712 | * |
713 | - * @return true if we should bail (don't insert ads) |
|
713 | + * @return boolean if we should bail (don't insert ads) |
|
714 | 714 | * |
715 | 715 | * @since 4.5.0 |
716 | 716 | */ |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * Returns status of WordAds approval. |
70 | 70 | * |
71 | - * @return boolean true if site is WordAds approved |
|
71 | + * @return string true if site is WordAds approved |
|
72 | 72 | * |
73 | 73 | * @since 4.5.0 |
74 | 74 | */ |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Returns status of WordAds active. |
85 | 85 | * |
86 | - * @return boolean true if ads are active on site |
|
86 | + * @return string true if ads are active on site |
|
87 | 87 | * |
88 | 88 | * @since 4.5.0 |
89 | 89 | */ |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Returns status of WordAds house ads. |
100 | 100 | * |
101 | - * @return boolean true if WP.com house ads should be shown |
|
101 | + * @return string true if WP.com house ads should be shown |
|
102 | 102 | * |
103 | 103 | * @since 4.5.0 |
104 | 104 | */ |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * Returns whether or not this site is safe to run ads on. |
116 | 116 | * |
117 | - * @return boolean true if ads shown not be shown on this site. |
|
117 | + * @return string true if ads shown not be shown on this site. |
|
118 | 118 | * |
119 | 119 | * @since 6.5.0 |
120 | 120 | */ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @param array $args Widget args. |
48 | 48 | * @param array $instance The Widget instance. |
49 | 49 | * |
50 | - * @return bool|void |
|
50 | + * @return false|null |
|
51 | 51 | */ |
52 | 52 | public function widget( $args, $instance ) { |
53 | 53 | global $wordads; |
@@ -433,6 +433,9 @@ |
||
433 | 433 | ); |
434 | 434 | } |
435 | 435 | |
436 | + /** |
|
437 | + * @param string $column |
|
438 | + */ |
|
436 | 439 | function _build_date_range_query( $column, $range, $where ) { |
437 | 440 | global $wpdb; |
438 | 441 |
@@ -15,6 +15,9 @@ |
||
15 | 15 | exit; |
16 | 16 | } |
17 | 17 | |
18 | +/** |
|
19 | + * @param string $file_pattern |
|
20 | + */ |
|
18 | 21 | function wpcom_rest_api_v2_load_plugin_files( $file_pattern ) { |
19 | 22 | $plugins = glob( dirname( __FILE__ ) . '/' . $file_pattern ); |
20 | 23 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Singleton implementation |
44 | 44 | * |
45 | - * @return object |
|
45 | + * @return Jetpack_Photon|null |
|
46 | 46 | */ |
47 | 47 | public static function instance() { |
48 | 48 | if ( ! is_a( self::$instance, 'Jetpack_Photon' ) ) { |
@@ -1382,7 +1382,7 @@ discard block |
||
1382 | 1382 | * after ourselves without breaking anyone else's filters. |
1383 | 1383 | * |
1384 | 1384 | * @internal |
1385 | - * @return true |
|
1385 | + * @return boolean |
|
1386 | 1386 | */ |
1387 | 1387 | public function override_image_downsize_in_rest_edit_context() { |
1388 | 1388 | return true; |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | * Only enqueue block assets when needed. |
584 | 584 | * |
585 | 585 | * @param string $type Slug of the block. |
586 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
586 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
587 | 587 | * detected script dependencies from the webpack build. |
588 | 588 | * |
589 | 589 | * @return void |
@@ -837,7 +837,7 @@ discard block |
||
837 | 837 | * |
838 | 838 | * @param string $slug Block slug. |
839 | 839 | * @param array $attr Block attributes. |
840 | - * @param array $extra Potential extra classes you may want to provide. |
|
840 | + * @param string[] $extra Potential extra classes you may want to provide. |
|
841 | 841 | * |
842 | 842 | * @return string $classes List of CSS classes for a block. |
843 | 843 | */ |
@@ -934,10 +934,10 @@ discard block |
||
934 | 934 | * @since 8.3.0 |
935 | 935 | * |
936 | 936 | * @param string $url URL saved as an attribute in block. |
937 | - * @param array $allowed Array of allowed hosts for that block, or regexes to check against. |
|
937 | + * @param string[] $allowed Array of allowed hosts for that block, or regexes to check against. |
|
938 | 938 | * @param bool $is_regex Array of regexes matching the URL that could be used in block. |
939 | 939 | * |
940 | - * @return bool|string |
|
940 | + * @return false|string |
|
941 | 941 | */ |
942 | 942 | public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) { |
943 | 943 | if ( |
@@ -105,7 +105,7 @@ |
||
105 | 105 | /** |
106 | 106 | * Returns an instance of the Jetpack object. |
107 | 107 | * |
108 | - * @return Automattic\Jetpack |
|
108 | + * @return Jetpack |
|
109 | 109 | */ |
110 | 110 | public function get_jetpack() { |
111 | 111 | return Jetpack::init(); |