Skip to content

Commit 930e8d8

Browse files
stunnerparasgithub-actions[bot]
authored andcommitted
Apply php-cs-fixer changes
1 parent 8ed55c5 commit 930e8d8

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/Gdpr/Attribute/Request/GdprRequestBody.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct()
3131
required: true,
3232
content: new JsonContent(
3333

34-
required: ['providers', 'searchTerms'],
34+
required: ['providers', 'searchTerms'],
3535
properties: [
3636
new Property(
3737
property: 'providers',

src/Gdpr/MappedParameter/GdprStructuredSearchRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
use Pimcore\Bundle\StudioBackendBundle\Gdpr\Attribute\Request\SearchTerms;
1717
use Symfony\Component\Validator\Constraints\All;
1818
use Symfony\Component\Validator\Constraints\NotBlank;
19+
use Symfony\Component\Validator\Constraints\NotNull;
1920
use Symfony\Component\Validator\Constraints\Type;
2021
use Symfony\Component\Validator\Constraints\Valid;
21-
use Symfony\Component\Validator\Constraints\NotNull;
2222

2323
/**
2424
* @internal

src/Gdpr/Schema/GdprSearchResultCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
namespace Pimcore\Bundle\StudioBackendBundle\Gdpr\Schema;
1515

16-
use Pimcore\Bundle\StudioBackendBundle\Util\Schema\AdditionalAttributesInterface;
17-
use Pimcore\Bundle\StudioBackendBundle\Util\Trait\AdditionalAttributesTrait;
1816
use OpenApi\Attributes\Items;
1917
use OpenApi\Attributes\Property;
2018
use OpenApi\Attributes\Schema;
19+
use Pimcore\Bundle\StudioBackendBundle\Util\Schema\AdditionalAttributesInterface;
20+
use Pimcore\Bundle\StudioBackendBundle\Util\Trait\AdditionalAttributesTrait;
2121

2222
/**
2323
* @internal

src/Gdpr/Service/GdprManagerService.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
namespace Pimcore\Bundle\StudioBackendBundle\Gdpr\Service;
1515

16+
use JsonException;
1617
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\ForbiddenException;
18+
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidArgumentException;
1719
use Pimcore\Bundle\StudioBackendBundle\Gdpr\Event\PreResponse\GdprDataProviderEvent;
1820
use Pimcore\Bundle\StudioBackendBundle\Gdpr\Event\PreResponse\GdprSearchResultEvent;
1921
use Pimcore\Bundle\StudioBackendBundle\Gdpr\MappedParameter\GdprStructuredSearchRequest;
@@ -26,10 +28,8 @@
2628
use Pimcore\Bundle\StudioBackendBundle\Util\Constant\HttpResponseCodes;
2729
use Pimcore\Bundle\StudioBackendBundle\Util\Constant\HttpResponseHeaders;
2830
use Pimcore\Bundle\StudioBackendBundle\Util\Trait\StreamedResponseTrait;
29-
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidArgumentException;
3031
use Symfony\Component\HttpFoundation\StreamedResponse;
3132
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
32-
use JsonException;
3333
use function count;
3434
use function sprintf;
3535
use function strlen;
@@ -67,7 +67,7 @@ public function search(GdprStructuredSearchRequest $request): GdprSearchResultCo
6767

6868
foreach ($request->providers as $providerKey) {
6969
$provider = $this->loader->resolve($providerKey);
70-
70+
7171
$this->checkProviderPermission($provider);
7272

7373
$results = $provider->findData($request->searchTerms);
@@ -90,7 +90,7 @@ public function search(GdprStructuredSearchRequest $request): GdprSearchResultCo
9090
public function getExportDataAsJson(int $id, string $providerKey): StreamedResponse
9191
{
9292
$provider = $this->loader->resolve($providerKey);
93-
93+
9494
$this->checkProviderPermission($provider);
9595

9696
$data = $provider->getSingleItemForDownload($id); //id is a single item of a particular provider
@@ -204,6 +204,7 @@ private function checkProviderPermission(DataProviderInterface $provider): void
204204
foreach ($permissions as $permission) {
205205
if ($currentUser->isAllowed($permission)) {
206206
$isGranted = true;
207+
207208
break;
208209
}
209210
}

0 commit comments

Comments
 (0)