aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests
diff options
context:
space:
mode:
authorHamid Dehnavi <hamid.dev.pro@gmail.com>2023-07-07 13:50:21 +0330
committerHamid Dehnavi <hamid.dev.pro@gmail.com>2023-09-28 12:18:41 +0330
commitd64bbc8bd3a6a272dd5c550916a6b80222f19e13 (patch)
tree1b56193c101e936e79478448c41af9b1f87521f5 /apps/provisioning_api/tests
parent456aea80420d7d4fc8dc853d9953687ed3f89ace (diff)
downloadnextcloud-server-d64bbc8bd3a6a272dd5c550916a6b80222f19e13.tar.gz
nextcloud-server-d64bbc8bd3a6a272dd5c550916a6b80222f19e13.zip
Convert isset ternary to null coalescing operator
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Diffstat (limited to 'apps/provisioning_api/tests')
-rw-r--r--apps/provisioning_api/tests/Controller/GroupsControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
index 5d16d58fc0a..a60d01f68c3 100644
--- a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
@@ -507,7 +507,7 @@ class GroupsControllerTest extends \Test\TestCase {
$this->userManager->expects($this->any())
->method('get')
->willReturnCallback(function (string $uid) use ($users) {
- return isset($users[$uid]) ? $users[$uid] : null;
+ return $users[$uid] ?? null;
});
$group = $this->createGroup($gid);
@@ -552,7 +552,7 @@ class GroupsControllerTest extends \Test\TestCase {
$this->userManager->expects($this->any())
->method('get')
->willReturnCallback(function (string $uid) use ($users) {
- return isset($users[$uid]) ? $users[$uid] : null;
+ return $users[$uid] ?? null;
});
$group = $this->createGroup($gid);