Skip to content

Commit

Permalink
CS: minor tweaks to comply with WordPressCS 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 3, 2023
1 parent 54c86de commit 042b770
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public function process( File $phpcsFile, $stackPtr ) {
break;
}


if ( $tokens[ $commentEnd ]['code'] !== \T_DOC_COMMENT_CLOSE_TAG ) {
// Function without (proper) docblock. Not our concern.
return;
Expand Down
1 change: 0 additions & 1 deletion Yoast/Sniffs/Files/TestDoublesSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public function process( File $phpcsFile, $stackPtr ) {
$name_contains_double_or_mock = true;
}


if ( empty( $this->target_paths ) === true ) {
if ( $name_contains_double_or_mock === true ) {
// No valid target paths found.
Expand Down
1 change: 0 additions & 1 deletion Yoast/Tests/NamingConventions/ObjectNameDepthUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,3 @@ public function getWarningList( $testFile = '' ) {
}
}
}

1 change: 0 additions & 1 deletion Yoast/Tests/NamingConventions/ValidHookNameUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ public function getWarningList() {
];
}
}

0 comments on commit 042b770

Please sign in to comment.