Skip to content

Commit

Permalink
[FileSystem] Use Yoda condition
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-prdh committed Nov 20, 2022
1 parent ccff5f3 commit 50b2523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ public function testDumpToProtectedDirectory()
$this->markTestSkipped('This test is specific to Windows.');
}

if (($userProfilePath = getenv('USERPROFILE')) === false || !is_dir($userProfilePath)) {
if (false === ($userProfilePath = getenv('USERPROFILE')) || !is_dir($userProfilePath)) {
throw new \RuntimeException('Failed to retrieve user profile path.');
}

Expand Down

0 comments on commit 50b2523

Please sign in to comment.