File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
tests/Unit/Presenters/Debug Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff 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 --> ' ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments