| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Array containing the keys and shortlinks. |
| 15 | 15 | * |
| 16 | - * @var array | |
| 16 | + * @var array<string, string> | |
| 17 | 17 | */ |
| 18 | 18 | private $shortlinks = [ |
| 19 | 19 | 'shortlinks.advanced.allow_search_engines' => 'https://yoa.st/allow-search-engines', |
| 20 | 20 | 'shortlinks.advanced.follow_links' => 'https://yoa.st/follow-links', |
| @@ -50,8 +50,9 @@ | ||
| 50 | 50 | 'shortlinks.upsell.metabox.content_blocks' => 'https://yoa.st/content-blocks-metabox', |
| 51 | 51 | 'shortlinks.upsell.gsc.create_redirect_button' => 'https://yoa.st/redirects', |
| 52 | 52 | 'shortlinks.readability_analysis_info' => 'https://yoa.st/readability-analysis', |
| 53 | 53 | 'shortlinks.inclusive_language_analysis_info' => 'https://yoa.st/inclusive-language-analysis', |
| 54 | + 'shortlinks.social_previews_info' => 'https://yoa.st/social-preview-admin-bar', | |
| 54 | 55 | 'shortlinks.activate_premium_info' => 'https://yoa.st/activate-subscription', |
| 55 | 56 | 'shortlinks.wincher.seo_performance' => 'https://yoa.st/wincher-integration', |
| 56 | 57 | 'shortlinks-insights-estimated_reading_time' => 'https://yoa.st/4fd', |
| 57 | 58 | 'shortlinks-insights-flesch_reading_ease' => 'https://yoa.st/34r', |
| @@ -81,11 +82,11 @@ | ||
| 81 | 82 | |
| 82 | 83 | /** |
| 83 | 84 | * Adds shortlinks to the passed array. |
| 84 | 85 | * |
| 85 | - * @param array $input The array to add shortlinks to. | |
| 86 | + * @param array<string, string|array<string, string>> $input The array to add shortlinks to. | |
| 86 | 87 | * |
| 87 | - * @return array The passed array with the additional shortlinks. | |
| 88 | + * @return array<string, string|array<string, string>> The passed array with the additional shortlinks. | |
| 88 | 89 | */ |
| 89 | 90 | public function expose_shortlinks( $input ) { |
| 90 | 91 | foreach ( $this->get_shortlinks() as $key => $shortlink ) { |
| 91 | 92 | $input[ $key ] = WPSEO_Shortlinker::get( $shortlink ); |
| @@ -98,9 +99,9 @@ | ||
| 98 | 99 | |
| 99 | 100 | /** |
| 100 | 101 | * Retrieves the shortlinks. |
| 101 | 102 | * |
| 102 | - * @return array The shortlinks. | |
| 103 | + * @return array<string, string> The shortlinks. | |
| 103 | 104 | */ |
| 104 | 105 | private function get_shortlinks() { |
| 105 | 106 | if ( ! $this->is_term_edit() ) { |
| 106 | 107 | return $this->shortlinks; |