Skip to content

Commit 9819c9e

Browse files
lukmziggithub-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent a4b6684 commit 9819c9e

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/DataIndex/Filter/TagFilter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Pimcore\Bundle\StudioBackendBundle\Grid\Column\ColumnType;
2020
use Pimcore\Bundle\StudioBackendBundle\MappedParameter\Filter\SimpleColumnFiltersParameterInterface;
2121
use Pimcore\Bundle\StudioBackendBundle\Util\Constant\UserPermissions;
22+
use function sprintf;
2223

2324
/**
2425
* @internal
@@ -36,7 +37,7 @@ public function apply(mixed $parameters, QueryInterface $query): QueryInterface
3637
if (!$filter) {
3738
return $query;
3839
}
39-
40+
4041
$user = $query->getSearch()->getUser();
4142
if (!$user || !$user->isAllowed(UserPermissions::TAGS_SEARCH->value)) {
4243
throw new ForbiddenException(

src/DataIndex/Grid/GridSearch.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ private function getSearchQuery(
145145
string $type,
146146
GridParameter $gridParameter,
147147
UserInterface $user
148-
): QueryInterface
149-
{
148+
): QueryInterface {
150149
$filter = $gridParameter->getFilters();
151150
$type = $this->getStudioElementType($type);
152151
$filter = $this->setFilterPath($filter, $type, $gridParameter->getFolderId(), $user);

src/DataIndex/Grid/GridSearchInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
use Pimcore\Bundle\StudioBackendBundle\DataIndex\DocumentSearchResult;
1919
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidElementTypeException;
2020
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidQueryTypeException;
21-
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException;
22-
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\SearchException;
2321
use Pimcore\Bundle\StudioBackendBundle\Grid\MappedParameter\GridParameter;
2422
use Pimcore\Model\UserInterface;
2523

0 commit comments

Comments
 (0)