| @@ -9,10 +9,8 @@ | ||
| 9 | 9 | /** |
| 10 | 10 | * System page builder for the indexables. |
| 11 | 11 | * |
| 12 | 12 | * Formats system pages ( search and error ) meta to indexable format. |
| 13 | - * | |
| 14 | - * @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded | |
| 15 | 13 | */ |
| 16 | 14 | class Indexable_System_Page_Builder { |
| 17 | 15 | |
| 18 | 16 | /** |
| @@ -17,9 +15,9 @@ | ||
| 17 | 15 | |
| 18 | 16 | /** |
| 19 | 17 | * Mapping of object type to title option keys. |
| 20 | 18 | */ |
| 21 | - const OPTION_MAPPING = [ | |
| 19 | + public const OPTION_MAPPING = [ | |
| 22 | 20 | 'search-result' => [ |
| 23 | 21 | 'title' => 'title-search-wpseo', |
| 24 | 22 | ], |
| 25 | 23 | '404' => [ |
| @@ -47,12 +45,9 @@ | ||
| 47 | 45 | * |
| 48 | 46 | * @param Options_Helper $options The options helper. |
| 49 | 47 | * @param Indexable_Builder_Versions $versions The latest version of each Indexable Builder. |
| 50 | 48 | */ |
| 51 | - public function __construct( | |
| 52 | - Options_Helper $options, | |
| 53 | - Indexable_Builder_Versions $versions | |
| 54 | - ) { | |
| 49 | + public function __construct( Options_Helper $options, Indexable_Builder_Versions $versions ) { | |
| 55 | 50 | $this->options = $options; |
| 56 | 51 | $this->version = $versions->get_latest_version_for_type( 'system-page' ); |
| 57 | 52 | } |
| 58 | 53 | |