diff options
author | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-07-07 13:50:21 +0330 |
---|---|---|
committer | Hamid Dehnavi <hamid.dev.pro@gmail.com> | 2023-09-28 12:18:41 +0330 |
commit | d64bbc8bd3a6a272dd5c550916a6b80222f19e13 (patch) | |
tree | 1b56193c101e936e79478448c41af9b1f87521f5 /apps/files_sharing/tests | |
parent | 456aea80420d7d4fc8dc853d9953687ed3f89ace (diff) | |
download | nextcloud-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/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php index 860d5796e56..b73b605f410 100644 --- a/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php @@ -340,8 +340,8 @@ class ShareesAPIControllerTest extends TestCase { * @param string $message */ public function testSearchInvalid($getData, $message) { - $page = isset($getData['page']) ? $getData['page'] : 1; - $perPage = isset($getData['perPage']) ? $getData['perPage'] : 200; + $page = $getData['page'] ?? 1; + $perPage = $getData['perPage'] ?? 200; /** @var IConfig|MockObject $config */ $config = $this->createMock(IConfig::class); |