diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-04 20:19:02 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-02-25 15:02:32 +0300 |
commit | 74623e27c44b01447fa3e9e4b4f53b63996d20f8 (patch) | |
tree | e1f33ee8e16f4a6c24847a952aa6a9ebdec0f69b /lib/Controller | |
parent | c1ef8a0d06f1ddc489ea17adddc5a02750a589a8 (diff) |
run php-cs-fixer with nextcloud config
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/FolderController.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Controller/FolderController.php b/lib/Controller/FolderController.php index 1941a80f..cb220bf0 100644 --- a/lib/Controller/FolderController.php +++ b/lib/Controller/FolderController.php @@ -190,7 +190,7 @@ class FolderController extends OCSController { if (isset($folderData['id'])) { // single folder response $folderData = $this->folderDataForXML($folderData); - } else if (is_array($folderData) && count($folderData) && isset(current($folderData)['id'])) { + } elseif (is_array($folderData) && count($folderData) && isset(current($folderData)['id'])) { // folder list $folderData = array_map([$this, 'folderDataForXML'], $folderData); } @@ -201,7 +201,7 @@ class FolderController extends OCSController { private function folderDataForXML($data) { $groups = $data['groups']; $data['groups'] = []; - foreach($groups as $id => $permissions) { + foreach ($groups as $id => $permissions) { $data['groups'][] = ['@group_id' => $id, '@permissions' => $permissions]; } return $data; @@ -226,7 +226,5 @@ class FolderController extends OCSController { 'users' => $users, 'groups' => $groups, ]); - - } } |