We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a26afe commit 28969e5Copy full SHA for 28969e5
setup/src/Magento/Setup/Model/FilePermissions.php
@@ -125,17 +125,16 @@ public function getInstallationCurrentWritableDirectories()
125
*/
126
private function checkRecursiveDirectories($directory)
127
{
128
- $flag = true;
129
$directoryIterator = new \RecursiveIteratorIterator(
130
new \RecursiveDirectoryIterator($directory),
131
\RecursiveIteratorIterator::LEAVES_ONLY | \RecursiveIteratorIterator::CATCH_GET_CHILD
132
);
133
foreach ($directoryIterator as $subDirectory) {
134
if ($subDirectory->isDir() && !$subDirectory->isWritable()) {
135
- $flag = false;
+ return false;
136
}
137
138
- return $flag;
+ return true;
139
140
141
/**
0 commit comments