Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
vancoder committed Jul 17, 2024
1 parent 42f53fd commit edcceec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class Enable_Jetpack_Safe_Mode implements Feature {
public function boot(): void {
if (
isset( $_ENV['PANTHEON_ENVIRONMENT'] ) &&
$_ENV['PANTHEON_ENVIRONMENT'] !== 'live'
'live' !== $_ENV['PANTHEON_ENVIRONMENT']
) {
add_filter( 'jetpack_is_development_site', '__return_true' );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ protected function setUp(): void {
* Test that the feature enabled Jetpack safe mode.
*/
public function test_enable_jetpack_safe_mode(): void {
$this->assertFalse( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should not be true prior to boot.' );
$this->assertFalse( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should not be true prior to boot.' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
$this->setEnvironment( 'test' );
$this->feature->boot();
$this->assertTrue( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should be true after boot.' );
$this->assertTrue( apply_filters( 'jetpack_is_development_site', false ), 'jetpack_is_development_site should be true after boot.' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
}

/**
Expand Down

0 comments on commit edcceec

Please sign in to comment.