Skip to content

Commit

Permalink
fix: fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Apr 1, 2021
1 parent 429d1a2 commit 4d7e0e3
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function handleServiceRequest(
): ResponseInterface {
parse_str($request->getUri()->getQuery(), $parameters);

$rlId = $parameters['rlid'] ?? null;
$resourceLinkIdentifier = $parameters['rlid'] ?? null;
$role = $parameters['role'] ?? null;
$limit = array_key_exists('limit', $parameters)
? intval($parameters['limit'])
Expand All @@ -96,22 +96,20 @@ public function handleServiceRequest(
? intval($parameters['offset'])
: null;

if (null !== $rlId) {
$membership = $this->builder->buildResourceLinkMembership(
$membership = null !== $resourceLinkIdentifier
? $this->builder->buildResourceLinkMembership(
$registration,
$rlId,
$resourceLinkIdentifier,
$role,
$limit,
$offset
);
} else {
$membership = $this->builder->buildContextMembership(
)
: $this->builder->buildContextMembership(
$registration,
$role,
$limit,
$offset
);
}

$responseBody = $this->serializer->serialize($membership);
$responseHeaders = [
Expand Down

0 comments on commit 4d7e0e3

Please sign in to comment.