Skip to content

Commit 3f628c0

Browse files
committed
Pass array instead of two is() calls
1 parent 99eff6f commit 3f628c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Controller/Component/ApiPaginationComponent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ protected function setVisibility()
111111
protected function isPaginatedApiRequest(Controller $controller)
112112
{
113113
if (isset($controller->request->params['paging']) &&
114-
$controller->request->is('json') ||
115-
$controller->request->is('xml')
114+
$controller->request->is(['json', 'xml'])
116115
) {
117116
return true;
118117
}

0 commit comments

Comments
 (0)