| @@ -28,10 +28,8 @@ | ||
| 28 | 28 | * |
| 29 | 29 | * @param object $screen WP Screen object. |
| 30 | 30 | * |
| 31 | 31 | * @since 4.12 |
| 32 | - * | |
| 33 | - * @return void | |
| 34 | 32 | */ |
| 35 | 33 | public function start( $screen ) { |
| 36 | 34 | // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 37 | 35 | if ( 'plugin-install' === $screen->base && ( ! isset( $_GET['paged'] ) || 1 === intval( $_GET['paged'] ) ) ) { |
| @@ -48,10 +46,8 @@ | ||
| 48 | 46 | * |
| 49 | 47 | * @param object $result Plugin search results. |
| 50 | 48 | * @param string $action unused. |
| 51 | 49 | * @param object $args Search args. |
| 52 | - * | |
| 53 | - * @return object | |
| 54 | 50 | */ |
| 55 | 51 | public function inject_suggestion( $result, $action, $args ) { |
| 56 | 52 | // Looks like a search query; it's matching time. |
| 57 | 53 | if ( empty( $args->search ) ) { |
| @@ -104,12 +100,9 @@ | ||
| 104 | 100 | * Search for any addons that match the searched terms. |
| 105 | 101 | * |
| 106 | 102 | * @since 4.12 |
| 107 | 103 | * |
| 108 | - * @param array $addon_list | |
| 109 | - * @param array $normalized_term | |
| 110 | - * | |
| 111 | - * @return int|null | |
| 104 | + * @return int | |
| 112 | 105 | */ |
| 113 | 106 | private function matching_addon( $addon_list, $normalized_term ) { |
| 114 | 107 | $matching_addon = null; |
| 115 | 108 | |
| @@ -195,10 +188,8 @@ | ||
| 195 | 188 | } |
| 196 | 189 | |
| 197 | 190 | /** |
| 198 | 191 | * @since 4.12 |
| 199 | - * | |
| 200 | - * @return void | |
| 201 | 192 | */ |
| 202 | 193 | private function maybe_dismiss() { |
| 203 | 194 | $addon = FrmAppHelper::get_param( 'frm-dismiss', '', 'get', 'absint' ); |
| 204 | 195 | if ( ! empty( $addon ) ) { |
| @@ -275,9 +266,8 @@ | ||
| 275 | 266 | |
| 276 | 267 | /** |
| 277 | 268 | * @since 4.12 |
| 278 | 269 | * |
| 279 | - * @param string $terms | |
| 280 | 270 | * @return array |
| 281 | 271 | */ |
| 282 | 272 | private function search_to_array( $terms ) { |
| 283 | 273 | $terms = $this->sanitize_search_term( $terms ); |
| @@ -288,10 +278,8 @@ | ||
| 288 | 278 | * Put some more appropriate links on our custom result cards. |
| 289 | 279 | * |
| 290 | 280 | * @param array $links Related links. |
| 291 | 281 | * @param array $plugin Plugin result information. |
| 292 | - * | |
| 293 | - * @return array | |
| 294 | 282 | */ |
| 295 | 283 | public function insert_related_links( $links, $plugin ) { |
| 296 | 284 | if ( self::$slug !== $plugin['slug'] ) { |
| 297 | 285 | return $links; |
| @@ -355,10 +343,8 @@ | ||
| 355 | 343 | } |
| 356 | 344 | |
| 357 | 345 | /** |
| 358 | 346 | * Load the search scripts and CSS for PSH. |
| 359 | - * | |
| 360 | - * @return void | |
| 361 | 347 | */ |
| 362 | 348 | public function load_plugins_search_script() { |
| 363 | 349 | wp_enqueue_script( self::$slug, FrmAppHelper::plugin_url() . '/js/plugin-search.js', array(), FrmAppHelper::plugin_version(), true ); |
| 364 | 350 | wp_localize_script( |