Skip to content

Commit 63960ab

Browse files
committed
Yoda conditions
1 parent a41cf94 commit 63960ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

class-tgm-plugin-activation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ public function overload_textdomain_mofile( $mofile, $domain ) {
514514
}
515515

516516
// Current fallback file is not valid, let's try the alternative option.
517-
if ( strpos( $mofile, '/themes/' ) !== false ) {
517+
if ( false !== strpos( $mofile, '/themes/' ) ) {
518518
return str_replace( '/themes/', '/plugins/', $mofile );
519-
} elseif ( strpos( $mofile, '/plugins/' ) !== false ) {
519+
} elseif ( false !== strpos( $mofile, '/plugins/' ) ) {
520520
return str_replace( '/plugins/', '/themes/', $mofile );
521521
} else {
522522
return $mofile;

0 commit comments

Comments
 (0)