Skip to content

Commit

Permalink
Fix static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Oct 18, 2022
1 parent 9f49772 commit 656f2ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Bundle/Controller/RequestConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function getRequestParameter($parameter, $defaults = [])
{
return array_replace_recursive(
$defaults,
$this->getParameterFromRequest($this->request, $parameter, [])
$this->getParameterFromRequest($this->request, $parameter, []),
);
}

Expand Down
17 changes: 7 additions & 10 deletions src/Bundle/spec/Controller/RequestConfigurationSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,8 @@ function it_has_criteria_parameter(
Request $request,
ParameterBag $attributesBag,
ParameterBag $queryBag,
ParameterBag $requestBag
): void
{
ParameterBag $requestBag,
): void {
$criteria = ['property' => 'myNewValue'];
$request->attributes = $attributesBag;
$request->query = $queryBag;
Expand All @@ -300,7 +299,7 @@ function it_allows_to_override_criteria_parameter_in_route(
Request $request,
ParameterBag $attributesBag,
ParameterBag $queryBag,
ParameterBag $requestBag
ParameterBag $requestBag,
): void {
$criteria = ['property' => 'myValue'];
$overriddenCriteria = ['other_property' => 'myNewValue'];
Expand Down Expand Up @@ -354,9 +353,8 @@ function it_has_sorting_parameter(
Request $request,
ParameterBag $attributesBag,
ParameterBag $queryBag,
ParameterBag $requestBag
): void
{
ParameterBag $requestBag,
): void {
$sorting = ['property' => 'asc'];
$request->attributes = $attributesBag;
$request->query = $queryBag;
Expand Down Expand Up @@ -388,9 +386,8 @@ function it_allows_to_override_sorting_parameter_in_route(
Request $request,
ParameterBag $attributesBag,
ParameterBag $queryBag,
ParameterBag $requestBag
): void
{
ParameterBag $requestBag,
): void {
$sorting = ['property' => 'desc'];
$overriddenSorting = ['other_property' => 'asc'];
$combinedSorting = ['other_property' => 'asc', 'property' => 'desc'];
Expand Down

0 comments on commit 656f2ec

Please sign in to comment.