Skip to content

Commit

Permalink
Coding Standards: Fix WPCS issues in `wp-admin/includes/class-wp-site…
Browse files Browse the repository at this point in the history
…-health-auto-updates.php`.

See #49542.

git-svn-id: https://develop.svn.wordpress.org/trunk@47841 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed May 22, 2020
1 parent 4d6ac48 commit 3fe58b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-admin/includes/class-wp-site-health-auto-updates.php
Expand Up @@ -65,7 +65,7 @@ function( $test ) {
* @return array The test results.
*/
public function test_constants( $constant, $value ) {
if ( defined( $constant ) && constant( $constant ) != $value ) {
if ( defined( $constant ) && constant( $constant ) !== $value ) {
return array(
'description' => sprintf(
/* translators: %s: Name of the constant used. */
Expand Down Expand Up @@ -245,7 +245,7 @@ public function test_vcs_abspath() {
$check_dirs[] = $context_dir;

// Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here.
if ( dirname( $context_dir ) == $context_dir ) {
if ( dirname( $context_dir ) === $context_dir ) {
break;
}

Expand Down

0 comments on commit 3fe58b1

Please sign in to comment.