Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Apr 19, 2021
2 parents d9755dc + 8d05774 commit 23abf49
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use function array_merge;
use function array_search;
use function array_values;

class IoStorageAllowListPass implements CompilerPassInterface
{
Expand Down
4 changes: 2 additions & 2 deletions bundle/EventListener/NoViewTemplateEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public function getController(ControllerEvent $event): void
}

if (
$view->getControllerReference() instanceof ControllerReference &&
mb_strpos($view->getControllerReference()->controller, sprintf('%s::', RedirectController::class)) === 0
$view->getControllerReference() instanceof ControllerReference
&& mb_strpos($view->getControllerReference()->controller, sprintf('%s::', RedirectController::class)) === 0
) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions bundle/Helper/PathHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function getPath(int $locationId, array $options = []): array

$excludedContentTypes = [];
if (
!$options['use_all_content_types'] &&
$this->configResolver->hasParameter('path_helper.excluded_content_types', 'ngsite')
!$options['use_all_content_types']
&& $this->configResolver->hasParameter('path_helper.excluded_content_types', 'ngsite')
) {
$excludedContentTypes = $this->configResolver->getParameter('path_helper.excluded_content_types', 'ngsite');
if (!is_array($excludedContentTypes)) {
Expand Down
12 changes: 6 additions & 6 deletions bundle/Layouts/Query/ContentByTopicHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

class ContentByTopicHandler implements QueryTypeHandlerInterface
{
use Traits\ContentTypeFilterTrait;
use Traits\MainLocationFilterTrait;
use Traits\ObjectStateFilterTrait;
use Traits\ParentLocationTrait;
use Traits\SortTrait;
use Traits\QueryTypeFilterTrait;
use Traits\MainLocationFilterTrait;
use Traits\ContentTypeFilterTrait;
use Traits\SectionFilterTrait;
use Traits\ObjectStateFilterTrait;
use Traits\SortTrait;

/**
* @var \Netgen\EzPlatformSiteApi\API\LoadService
Expand Down Expand Up @@ -152,8 +152,8 @@ public function getCount(Query $query): int
public function isContextual(Query $query): bool
{
return
$query->getParameter('use_topic_from_current_content')->getValue() === true ||
$query->getParameter('use_current_location')->getValue() === true;
$query->getParameter('use_topic_from_current_content')->getValue() === true
|| $query->getParameter('use_current_location')->getValue() === true;
}

/**
Expand Down

0 comments on commit 23abf49

Please sign in to comment.