Skip to content

Commit 7eb9a8c

Browse files
committed
fix incorrect whitespace
1 parent 288f760 commit 7eb9a8c

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/Http/Controllers/ResourceController.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -333,26 +333,26 @@ function (Builder $query) use ($filter, $resourceType) {
333333
}
334334

335335
if($request->input('cursor')){
336-
$cursor = @Cursor::fromEncoded($request->input('cursor'));
336+
$cursor = @Cursor::fromEncoded($request->input('cursor'));
337337

338-
if($cursor == null){
339-
throw (new SCIMException('Invalid Cursor'))->setCode(400)->setScimType('invalidCursor');
338+
if($cursor == null){
339+
throw (new SCIMException('Invalid Cursor'))->setCode(400)->setScimType('invalidCursor');
340+
}
340341
}
341-
}
342342

343-
$countRaw = $request->input('count');
343+
$countRaw = $request->input('count');
344344

345-
if($countRaw < 1 || $countRaw > config('scim.pagination.maxPageSize')){
346-
throw (new SCIMException(
347-
sprintf('Count value is invalid. Count value must be between 1 - and maxPageSize (%s) (when using cursor pagination)', config('scim.pagination.maxPageSize'))
348-
))->setCode(400)->setScimType('invalidCount');
349-
}
350-
351-
$resourceObjects = $resourceObjects->cursorPaginate(
352-
$count,
353-
cursor: $request->input('cursor')
354-
);
355-
$resources = collect($resourceObjects->items());
345+
if($countRaw < 1 || $countRaw > config('scim.pagination.maxPageSize')){
346+
throw (new SCIMException(
347+
sprintf('Count value is invalid. Count value must be between 1 - and maxPageSize (%s) (when using cursor pagination)', config('scim.pagination.maxPageSize'))
348+
))->setCode(400)->setScimType('invalidCount');
349+
}
350+
351+
$resourceObjects = $resourceObjects->cursorPaginate(
352+
$count,
353+
cursor: $request->input('cursor')
354+
);
355+
$resources = collect($resourceObjects->items());
356356

357357

358358
} else {

0 commit comments

Comments
 (0)