@@ -60,8 +60,11 @@ |
||
| 60 | 60 | $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST); |
| 61 | 61 | |
| 62 | 62 | foreach ($it as $file) { |
| 63 | - if ($file->isDir()) rmdir($file->getPathname()); |
|
| 64 | - else unlink($file->getPathname()); |
|
| 63 | + if ($file->isDir()) { |
|
| 64 | + rmdir($file->getPathname()); |
|
| 65 | + } else { |
|
| 66 | + unlink($file->getPathname()); |
|
| 67 | + } |
|
| 65 | 68 | } |
| 66 | 69 | |
| 67 | 70 | return rmdir($dir); |
@@ -52,10 +52,11 @@ |
||
| 52 | 52 | public function getGroupMembershipFilter(): string |
| 53 | 53 | { |
| 54 | 54 | if (empty($this->ldapParams->getGroup())) { |
| 55 | - if ($this->ldapParams->IsAzure()) |
|
| 56 | - return self::FILTER_USER_OBJECT_AZURE; |
|
| 57 | - else |
|
| 58 | - return self::FILTER_USER_OBJECT; |
|
| 55 | + if ($this->ldapParams->IsAzure()) { |
|
| 56 | + return self::FILTER_USER_OBJECT_AZURE; |
|
| 57 | + } else { |
|
| 58 | + return self::FILTER_USER_OBJECT; |
|
| 59 | + } |
|
| 59 | 60 | } |
| 60 | 61 | |
| 61 | 62 | if ($this->ldapParams->IsAzure()) { |