8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d49cef commit f6a07b8Copy full SHA for f6a07b8
src/Http/Query/QueryParametersParser.php
@@ -82,11 +82,10 @@ private function getIncludePaths(array $parameters)
82
* @return array|null
83
*
84
* @SuppressWarnings(PHPMD.StaticAccess)
85
- * @SuppressWarnings(PHPMD.ElseExpression)
86
*/
87
private function getFieldSets(array $parameters)
88
{
89
- $result = [];
+ $result = null;
90
$fieldSets = $this->getParamOrNull($parameters, self::PARAM_FIELDS);
91
if (empty($fieldSets) === false && is_array($fieldSets)) {
92
foreach ($fieldSets as $type => $fields) {
@@ -97,8 +96,6 @@ private function getFieldSets(array $parameters)
97
96
}
98
$result[$type] = (empty($fields) === true ? [] : explode(',', $fields));
99
100
- } else {
101
- $result = null;
102
103
104
return $result;
0 commit comments