diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-10-05 21:31:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 21:31:38 +0200 |
commit | 0f7fb7cb4e296f6b90d668eb9cd01bcd6ef0c582 (patch) | |
tree | 76aa76c1c7e7b03281d581126bb521df7844a5d1 /apps/provisioning_api | |
parent | 1ad0631c661b64d670f1a61dfd46b7de2addb8d8 (diff) | |
parent | d9015a8c94bfd71fe484618a06d276701d3bf9ff (diff) | |
download | nextcloud-server-0f7fb7cb4e296f6b90d668eb9cd01bcd6ef0c582.tar.gz nextcloud-server-0f7fb7cb4e296f6b90d668eb9cd01bcd6ef0c582.zip |
Merge pull request #23189 from nextcloud/enhancement/cs/binary_operator_spaces
Format code to a single space around binary operators
Diffstat (limited to 'apps/provisioning_api')
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/provisioning_api/lib/Controller/GroupsController.php b/apps/provisioning_api/lib/Controller/GroupsController.php index 243ef8ea6be..0f37b63caa1 100644 --- a/apps/provisioning_api/lib/Controller/GroupsController.php +++ b/apps/provisioning_api/lib/Controller/GroupsController.php @@ -154,7 +154,7 @@ class GroupsController extends AUserData { // Check the group exists $group = $this->groupManager->get($groupId); if ($group !== null) { - $isSubadminOfGroup =$this->groupManager->getSubAdmin()->isSubAdminOfGroup($user, $group); + $isSubadminOfGroup = $this->groupManager->getSubAdmin()->isSubAdminOfGroup($user, $group); } else { throw new OCSNotFoundException('The requested group could not be found'); } @@ -163,7 +163,7 @@ class GroupsController extends AUserData { if ($this->groupManager->isAdmin($user->getUID()) || $isSubadminOfGroup) { $users = $this->groupManager->get($groupId)->getUsers(); - $users = array_map(function ($user) { + $users = array_map(function ($user) { /** @var IUser $user */ return $user->getUID(); }, $users); diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 5903292ed6b..fd143a0e466 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -411,7 +411,7 @@ class UsersController extends AUserData { public function getCurrentUser(): DataResponse { $user = $this->userSession->getUser(); if ($user) { - $data = $this->getUserData($user->getUID()); + $data = $this->getUserData($user->getUID()); // rename "displayname" to "display-name" only for this call to keep // the API stable. $data['display-name'] = $data['displayname']; diff --git a/apps/provisioning_api/tests/Controller/AppsControllerTest.php b/apps/provisioning_api/tests/Controller/AppsControllerTest.php index 28867f0b80b..88125a93488 100644 --- a/apps/provisioning_api/tests/Controller/AppsControllerTest.php +++ b/apps/provisioning_api/tests/Controller/AppsControllerTest.php @@ -101,7 +101,7 @@ class AppsControllerTest extends \OCA\Provisioning_API\Tests\TestCase { $result = $this->api->getApps('disabled'); $data = $result->getData(); $apps = (new \OC_App)->listAllApps(); - $list = []; + $list = []; foreach ($apps as $app) { $list[] = $app['id']; } |