Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-goe committed Jul 8, 2024
1 parent d779247 commit aa8bd36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Service/SolrServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ protected function queryComponentsForQueryParameters(array $queryParameters): ar
if (array_key_exists('default', $fieldInfo)) {
$defaults = $fieldInfo['default'];
}

if (isset($defaults)) {
if (!is_array($defaults)) {
$defaults = [$defaults];
Expand Down Expand Up @@ -1132,6 +1133,7 @@ protected function setFields(array $arguments): void
if (array_key_exists('allow', $fieldsConfig) && $fieldsConfig['allow']) {
$allowedFields = $fieldsConfig['allow'];
}

if (isset($allowedFields)) {
$fields = array_intersect($fields, $allowedFields);
}
Expand All @@ -1140,6 +1142,7 @@ protected function setFields(array $arguments): void
if (array_key_exists('disallow', $fieldsConfig) && $fieldsConfig['disallow']) {
$disallowedFields = $fieldsConfig['disallow'];
}

if (isset($disallowedFields)) {
$fields = array_diff($fields, $disallowedFields);
}
Expand Down

0 comments on commit aa8bd36

Please sign in to comment.