Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon authored and github-actions[bot] committed Apr 23, 2024
1 parent 02b3c61 commit e942605
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/Factory/FilterServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
final class FilterServiceFactory implements FilterServiceFactoryInterface
{
private array $filterServices = [];

public function __construct(FilterServiceLoaderInterface $taggedIteratorAdapter)
{
foreach($taggedIteratorAdapter->loadFilterServices() as $filterService) {
$this->filterServices[$filterService->getType()] = $filterService;
}
}

public function create(string $type): mixed
{
if(!array_key_exists($type, $this->filterServices)) {
Expand All @@ -35,4 +37,4 @@ public function create(string $type): mixed

return $this->filterServices[$type];
}
}
}
2 changes: 1 addition & 1 deletion src/Factory/FilterServiceFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
interface FilterServiceFactoryInterface
{
public function create(string $type): mixed;
}
}
2 changes: 0 additions & 2 deletions src/Factory/FilterServiceLoaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

namespace Pimcore\Bundle\StudioApiBundle\Factory;

use Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1\Filter\Filters;

/**
* @internal
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Service/FilterServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
interface FilterServiceInterface
{
public function getType(): string;
}
}

0 comments on commit e942605

Please sign in to comment.