8000 Close #186 · rzenkov/json-api@f6a07b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6a07b8

Browse files
committed
Close neomerx#186
1 parent 6d49cef commit f6a07b8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Http/Query/QueryParametersParser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ private function getIncludePaths(array $parameters)
8282
* @return array|null
8383
*
8484
* @SuppressWarnings(PHPMD.StaticAccess)
85-
* @SuppressWarnings(PHPMD.ElseExpression)
8685
*/
8786
private function getFieldSets(array $parameters)
8887
{
89-
$result = [];
88+
$result = null;
9089
$fieldSets = $this->getParamOrNull($parameters, self::PARAM_FIELDS);
9190
if (empty($fieldSets) === false && is_array($fieldSets)) {
9291
foreach ($fieldSets as $type => $fields) {
@@ -97,8 +96,6 @@ private function getFieldSets(array $parameters)
9796
}
9897
$result[$type] = (empty($fields) === true ? [] : explode(',', $fields));
9998
}
100-
} else {
101-
$result = null;
10299
}
103100

104101
return $result;

0 commit comments

Comments
 (0)
0