Skip to content

Commit

Permalink
Performance/RegexpCompare: remove redundant condition
Browse files Browse the repository at this point in the history
This condition will always be `true` if one of the previous conditions is `true`, so is redundant.
  • Loading branch information
jrfnl committed Aug 22, 2023
1 parent df070e7 commit 80a7c06
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public function getGroups() {
public function callback( $key, $val, $line, $group ) {
return ( strpos( $val, 'NOT REGEXP' ) === 0
|| strpos( $val, 'REGEXP' ) === 0
|| in_array( $val, [ 'REGEXP', 'NOT REGEXP' ], true ) === true
);
}
}

0 comments on commit 80a7c06

Please sign in to comment.