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/routes/semrush-route.php +7 -7 18.3 → trunk View file →
@@ -19,9 +19,9 @@
19 19 * The SEMrush route prefix.
20 20 *
21 21 * @var string
22 22 */
23 - const ROUTE_PREFIX = 'semrush';
23 + public const ROUTE_PREFIX = 'semrush';
24 24
25 25 /**
26 26 * The authenticate route constant.
27 27 *
@@ -26,9 +26,9 @@
26 26 * The authenticate route constant.
27 27 *
28 28 * @var string
29 29 */
30 - const AUTHENTICATION_ROUTE = self::ROUTE_PREFIX . '/authenticate';
30 + public const AUTHENTICATION_ROUTE = self::ROUTE_PREFIX . '/authenticate';
31 31
32 32 /**
33 33 * The country code option route constant.
34 34 *
@@ -33,9 +33,9 @@
33 33 * The country code option route constant.
34 34 *
35 35 * @var string
36 36 */
37 - const COUNTRY_CODE_OPTION_ROUTE = self::ROUTE_PREFIX . '/country_code';
37 + public const COUNTRY_CODE_OPTION_ROUTE = self::ROUTE_PREFIX . '/country_code';
38 38
39 39 /**
40 40 * The request related keyphrases route constant.
41 41 *
@@ -40,9 +40,9 @@
40 40 * The request related keyphrases route constant.
41 41 *
42 42 * @var string
43 43 */
44 - const RELATED_KEYPHRASES_ROUTE = self::ROUTE_PREFIX . '/related_keyphrases';
44 + public const RELATED_KEYPHRASES_ROUTE = self::ROUTE_PREFIX . '/related_keyphrases';
45 45
46 46 /**
47 47 * The full login route constant.
48 48 *
@@ -47,9 +47,9 @@
47 47 * The full login route constant.
48 48 *
49 49 * @var string
50 50 */
51 - const FULL_AUTHENTICATION_ROUTE = Main::API_V1_NAMESPACE . '/' . self::AUTHENTICATION_ROUTE;
51 + public const FULL_AUTHENTICATION_ROUTE = Main::API_V1_NAMESPACE . '/' . self::AUTHENTICATION_ROUTE;
52 52
53 53 /**
54 54 * The full country code option route constant.
55 55 *
@@ -54,9 +54,9 @@
54 54 * The full country code option route constant.
55 55 *
56 56 * @var string
57 57 */
58 - const FULL_COUNTRY_CODE_OPTION_ROUTE = Main::API_V1_NAMESPACE . '/' . self::COUNTRY_CODE_OPTION_ROUTE;
58 + public const FULL_COUNTRY_CODE_OPTION_ROUTE = Main::API_V1_NAMESPACE . '/' . self::COUNTRY_CODE_OPTION_ROUTE;
59 59
60 60 /**
61 61 * The login action.
62 62 *
@@ -219,9 +219,9 @@
219 219 $data = $this
220 220 ->phrases_action
221 221 ->get_related_keyphrases(
222 222 $request['keyphrase'],
223 - $request['country_code']
223 + $request['country_code'],
224 224 );
225 225
226 226 return new WP_REST_Response( $data, $data->status );
227 227 }