Skip to content

Commit

Permalink
Fix spacing inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Oct 17, 2024
1 parent 7d9053e commit acb004e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function getResultArrayForRequest(string $objectType, array $requestParam
$extend = $requestParams['extend'] ?? $requestParams['_extend'] ?? null;
$page = $requestParams['page'] ?? $requestParams['_page'] ?? null;

if($page !== null && isset($limit)) {
if ($page !== null && isset($limit)) {
$offset = $limit * ($page - 1);
}

Expand Down Expand Up @@ -381,7 +381,7 @@ public function extendEntity(mixed $entity, array $extend): array
// Convert the entity to an array if it's not already one
$result = is_array($entity) ? $entity : $entity->jsonSerialize();

if(in_array(needle: 'all', haystack: $extend) === true) {
if (in_array(needle: 'all', haystack: $extend) === true) {
$extend = array_keys($entity);
$surpressMapperError = true;
}
Expand Down Expand Up @@ -414,7 +414,7 @@ public function extendEntity(mixed $entity, array $extend): array
$propertyObject = $singularProperty;
} catch (Exception $e) {
// If still no mapper, throw a no mapper available error
if($surpressMapperError === true) {
if ($surpressMapperError === true) {
continue;
}
throw new Exception("No mapper available for property '$property'.");
Expand Down

0 comments on commit acb004e

Please sign in to comment.