Skip to content

Commit 3268baf

Browse files
committed
Fix syntax
1 parent 1efce9b commit 3268baf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/presenters/debug/marker-open-presenter.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ public function present() {
2626
$product_name = \esc_html( $this->helpers->product->get_name() );
2727
$is_premium = $this->helpers->product->is_premium();
2828

29-
$version = $is_premium
30-
? $this->construct_version_info()
31-
: 'v' . \WPSEO_VERSION;
29+
$version = ( $is_premium ) ? $this->construct_version_info() : 'v' . \WPSEO_VERSION;
3230

33-
$url = $is_premium
34-
? 'https://yoast.com/product/yoast-seo-premium-wordpress/'
35-
: 'https://yoast.com/product/yoast-seo-wordpress/';
31+
$url = ( $is_premium ) ? 'https://yoast.com/product/yoast-seo-premium-wordpress/' : 'https://yoast.com/product/yoast-seo-wordpress/';
3632

3733
return \sprintf(
3834
'<!-- This site is optimized with the %1$s %2$s - %3$s -->',

tests/Unit/Presenters/Debug/Marker_Open_Presenter_Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function test_get() {
9191
public function test_present_premium() {
9292
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- Intended use for testing.
9393
if ( ! \defined( 'WPSEO_PREMIUM_VERSION' ) ) {
94+
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- Testing constant definition.
9495
\define( 'WPSEO_PREMIUM_VERSION', '2.0' );
9596
}
9697

0 commit comments

Comments
 (0)