PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/builders/indexable-system-page-builder.php +2 -7 18.8 → trunk View file →
@@ -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