Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasGraml11 committed Oct 30, 2023
1 parent 1acae43 commit f2fca1d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/Search/Api/SearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public function doFilter(Request $request, Criteria $criteria, SalesChannelConte

$handler = $this->buildSearchRequestHandler();
// TODO: Add correct check for search
// if (!$event instanceof ProductSearchCriteriaEvent) {
// return;
// }
// if (!$event instanceof ProductSearchCriteriaEvent) {
// return;
// }

// if (!$this->isCategoryPage($handler, $event)) {
// $handler = $this->buildSearchRequestHandler();
// }
// if (!$this->isCategoryPage($handler, $event)) {
// $handler = $this->buildSearchRequestHandler();
// }

$this->fetchFilters($request, $criteria, $context, $handler);
$this->fetchSelectableFilters($request, $criteria, $context, $handler);
Expand Down
2 changes: 1 addition & 1 deletion src/Struct/NostoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public function getEnabled(): bool
{
return $this->enabled;
}
}
}
5 changes: 2 additions & 3 deletions src/Subscriber/FrontendSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Nosto\NostoIntegration\Subscriber;

use Nosto\NostoIntegration\Model\ConfigProvider;
use Nosto\NostoIntegration\Struct\NostoService;
use Nosto\NostoIntegration\Struct\PageInformation;
use Nosto\NostoIntegration\Utils\SearchHelper;
Expand All @@ -18,7 +17,7 @@ class FrontendSubscriber implements EventSubscriberInterface
public static function getSubscribedEvents(): array
{
return [
HeaderPageletLoadedEvent::class => 'onHeaderLoaded'
HeaderPageletLoadedEvent::class => 'onHeaderLoaded',
];
}

Expand All @@ -37,4 +36,4 @@ public function onHeaderLoaded(HeaderPageletLoadedEvent $event): void

$event->getPagelet()->addExtension('nostoPageInformation', $pageInformation);
}
}
}
2 changes: 1 addition & 1 deletion src/Utils/SearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public static function disableNostoWhenEnabled(SalesChannelContext $context): vo
$nostoService = $context->getContext()->getExtension('nostoService');
$nostoService->disable();
}
}
}

0 comments on commit f2fca1d

Please sign in to comment.