Skip to content

Commit

Permalink
Apply fixes from StyleCI (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
codedge authored Apr 9, 2021
1 parent cc65581 commit 60bca20
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ function checkPermissions(string $directory): bool
{
$directoryIterator = new \RecursiveDirectoryIterator($directory);

foreach(new \RecursiveIteratorIterator($directoryIterator) as $file) {

if($file->isFile() && !$file->isWritable()){
foreach (new \RecursiveIteratorIterator($directoryIterator) as $file) {
if ($file->isFile() && ! $file->isWritable()) {
return false;
}

}

return true;
Expand Down

0 comments on commit 60bca20

Please sign in to comment.