Skip to content

Commit f76908a

Browse files
committed
Use strict comparisons
1 parent c354dc7 commit f76908a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Shell_Command.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __invoke( $_, $assoc_args ) {
4242
}
4343
}
4444

45-
if ( '\\Psy\\Shell' == $class ) {
45+
if ( '\\Psy\\Shell' === $class ) {
4646
\Psy\Shell::debug();
4747
} else {
4848
$repl = new $class( 'wp> ' );

‎src/WP_CLI/REPL.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function prompt() {
9393

9494
$line = rtrim( $line, "\n" );
9595

96-
if ( $line && '\\' == $line[ strlen( $line ) - 1 ] ) {
96+
if ( $line && '\\' === $line[ strlen( $line ) - 1 ] ) {
9797
$line = substr( $line, 0, -1 );
9898
} else {
9999
$done = true;

0 commit comments

Comments
 (0)