Skip to content

Commit

Permalink
OP-225: Apply ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
GracjanJozefczyk committed May 27, 2024
1 parent 5d9082e commit bb813ca
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __invoke(Request $request): Response
$template,
[
'results' => $results ?? null,
'searchForm' => $form->createView()
'searchForm' => $form->createView(),
]
));
}
Expand Down
2 changes: 1 addition & 1 deletion src/Facet/AutoDiscoverRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
private LocaleContextInterface $localeContext,
private RegistryInterface $registry,
private array $excludedAttributes = [],
private array $excludedOptions = [],
private array $excludedOptions = []
) {
}

Expand Down
2 changes: 2 additions & 0 deletions src/Facet/AutoDiscoverRegistryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
* an email on hello@bitbag.io.
*/

declare(strict_types=1);

namespace BitBag\SyliusElasticsearchPlugin\Facet;

interface AutoDiscoverRegistryInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Form/EventSubscriber/AddFacetsEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class AddFacetsEventSubscriber implements EventSubscriberInterface
public function __construct(
private AutoDiscoverRegistryInterface $autoDiscoverRegistry,
private ProductsFilterFacetResolverInterface $facetsResolver,
private string $namePropertyPrefix = '',
private string $namePropertyPrefix = ''
) {
}

Expand Down
11 changes: 0 additions & 11 deletions src/Form/Resolver/FacetsResolverInterface.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* an email on hello@bitbag.io.
*/

declare(strict_types=1);

namespace BitBag\SyliusElasticsearchPlugin\QueryBuilder\FormQueryBuilder;

use Elastica\Query;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class TaxonFacetsQueryBuilder implements TaxonFacetsQueryBuilderInterface
public function __construct(
private DataHandlerInterface $shopProductListDataHandler,
private QueryBuilderInterface $searchProductsQueryBuilder,
private RegistryInterface $facetRegistry,
private RegistryInterface $facetRegistry
) {
}

Expand Down

0 comments on commit bb813ca

Please sign in to comment.