| @@ -30,15 +30,15 @@ | ||
| 30 | 30 | * @return string The filtered title. |
| 31 | 31 | */ |
| 32 | 32 | public function get() { |
| 33 | 33 | $title = $this->replace_vars( $this->presentation->open_graph_title ); |
| 34 | + | |
| 34 | 35 | /** |
| 35 | 36 | * Filter: 'wpseo_opengraph_title' - Allow changing the Yoast SEO generated title. |
| 36 | 37 | * |
| 38 | + * @param string $title The title. | |
| 37 | 39 | * @param Indexable_Presentation $presentation The presentation of an indexable. |
| 38 | - * | |
| 39 | - * @api string $title The title. | |
| 40 | 40 | */ |
| 41 | - $title = (string) \trim( \apply_filters( 'wpseo_opengraph_title', $title, $this->presentation ) ); | |
| 41 | + $title = \trim( (string) \apply_filters( 'wpseo_opengraph_title', $title, $this->presentation ) ); | |
| 42 | 42 | return $this->helpers->string->strip_all_tags( $title ); |
| 43 | 43 | } |
| 44 | 44 | } |