@@ -172,7 +172,7 @@ |
||
172 | 172 | * @param array $post_types - other post types. |
173 | 173 | * |
174 | 174 | * @see hook 'rest_api_allowed_post_types' |
175 | - * @return array |
|
175 | + * @return string[] |
|
176 | 176 | */ |
177 | 177 | public function allow_rest_api_types( $post_types ) { |
178 | 178 | $post_types[] = self::$post_type_plan; |
@@ -416,7 +416,7 @@ |
||
416 | 416 | * Only enqueue block assets when needed. |
417 | 417 | * |
418 | 418 | * @param string $type Slug of the block. |
419 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
419 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
420 | 420 | * detected script dependencies from the webpack build. |
421 | 421 | * |
422 | 422 | * @return void |
@@ -447,6 +447,10 @@ discard block |
||
447 | 447 | } |
448 | 448 | |
449 | 449 | // functions |
450 | + |
|
451 | + /** |
|
452 | + * @param string $name |
|
453 | + */ |
|
450 | 454 | public function get_callable( $name ) { |
451 | 455 | $value = get_option( 'jetpack_' . $name ); |
452 | 456 | |
@@ -738,6 +742,9 @@ discard block |
||
738 | 742 | return $histogram; |
739 | 743 | } |
740 | 744 | |
745 | + /** |
|
746 | + * @param string|null $id_column |
|
747 | + */ |
|
741 | 748 | private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true, $salt = '' ) { |
742 | 749 | global $wpdb; |
743 | 750 | |
@@ -791,6 +798,9 @@ discard block |
||
791 | 798 | return 'sum'; |
792 | 799 | } |
793 | 800 | |
801 | + /** |
|
802 | + * @param string $where_sql |
|
803 | + */ |
|
794 | 804 | private function meta_count( $table, $where_sql, $min_id, $max_id ) { |
795 | 805 | global $wpdb; |
796 | 806 |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Plugin options getter |
144 | 144 | * |
145 | - * @param string|array $option Option name. |
|
145 | + * @param string $option Option name. |
|
146 | 146 | * @param mixed $default Default value. |
147 | 147 | * |
148 | 148 | * @return mixed Option value |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param string $url Soundcloud URL. |
160 | 160 | * |
161 | - * @return boolean |
|
161 | + * @return integer |
|
162 | 162 | */ |
163 | 163 | function soundcloud_url_has_tracklist( $url ) { |
164 | 164 | return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url ); |