From a5a6257efa6c6796e12fb1ff93d96999bd4991da Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Thu, 10 Oct 2024 11:30:19 +0200 Subject: [PATCH] code style --- .../Core/DependencyInjection/Configuration/Parser/Common.php | 3 --- .../Core/DependencyInjection/Configuration/Parser/Image.php | 3 --- src/lib/IO/IOMetadataHandler/LegacyDFSCluster.php | 4 ++-- .../DependencyInjection/Configuration/Parser/CommonTest.php | 3 +-- .../Core/Repository/ContentServiceAuthorizationTest.php | 3 +-- tests/integration/Core/Repository/ContentServiceTest.php | 5 ++--- .../Component/Serializer/SimplifiedRequestNormalizerTest.php | 2 +- tests/lib/MVC/Symfony/View/ViewManagerTest.php | 1 - 8 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/bundle/Core/DependencyInjection/Configuration/Parser/Common.php b/src/bundle/Core/DependencyInjection/Configuration/Parser/Common.php index ee0fafe77f..13e4695be9 100644 --- a/src/bundle/Core/DependencyInjection/Configuration/Parser/Common.php +++ b/src/bundle/Core/DependencyInjection/Configuration/Parser/Common.php @@ -9,9 +9,6 @@ use Ibexa\Bundle\Core\DependencyInjection\Configuration\AbstractParser; use Ibexa\Bundle\Core\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorAwareInterface; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorInterface; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\ConfigSuggestion; use Symfony\Component\Config\Definition\Builder\NodeBuilder; /** diff --git a/src/bundle/Core/DependencyInjection/Configuration/Parser/Image.php b/src/bundle/Core/DependencyInjection/Configuration/Parser/Image.php index f45ebf2ca0..f58a18bd94 100644 --- a/src/bundle/Core/DependencyInjection/Configuration/Parser/Image.php +++ b/src/bundle/Core/DependencyInjection/Configuration/Parser/Image.php @@ -9,9 +9,6 @@ use Ibexa\Bundle\Core\DependencyInjection\Configuration\AbstractParser; use Ibexa\Bundle\Core\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorAwareInterface; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorInterface; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\ConfigSuggestion; use Symfony\Component\Config\Definition\Builder\NodeBuilder; /** diff --git a/src/lib/IO/IOMetadataHandler/LegacyDFSCluster.php b/src/lib/IO/IOMetadataHandler/LegacyDFSCluster.php index 60277e819a..79cc6dd02f 100644 --- a/src/lib/IO/IOMetadataHandler/LegacyDFSCluster.php +++ b/src/lib/IO/IOMetadataHandler/LegacyDFSCluster.php @@ -46,11 +46,11 @@ public function __construct(Connection $connection, UrlDecorator $urlDecorator = * @param \Ibexa\Contracts\Core\IO\BinaryFileCreateStruct $spiBinaryFileCreateStruct * * @return \Ibexa\Contracts\Core\IO\BinaryFile - *@throws \RuntimeException if a DBAL error occurs * + *@throws \RuntimeException if a DBAL error occurs * @throws \Ibexa\Core\Base\Exceptions\InvalidArgumentException if the $binaryFileCreateStruct is invalid - * @since 6.10 The mtime of the $binaryFileCreateStruct must be a DateTime, as specified in the struct doc. * + * @since 6.10 The mtime of the $binaryFileCreateStruct must be a DateTime, as specified in the struct doc. */ public function create(SPIBinaryFileCreateStruct $spiBinaryFileCreateStruct) { diff --git a/tests/bundle/Core/DependencyInjection/Configuration/Parser/CommonTest.php b/tests/bundle/Core/DependencyInjection/Configuration/Parser/CommonTest.php index fc48df24d9..057b5da634 100644 --- a/tests/bundle/Core/DependencyInjection/Configuration/Parser/CommonTest.php +++ b/tests/bundle/Core/DependencyInjection/Configuration/Parser/CommonTest.php @@ -8,7 +8,6 @@ namespace Ibexa\Tests\Bundle\Core\DependencyInjection\Configuration\Parser; use Ibexa\Bundle\Core\DependencyInjection\Configuration\Parser\Common; -use Ibexa\Bundle\Core\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorInterface; use Ibexa\Bundle\Core\DependencyInjection\IbexaCoreExtension; use Symfony\Component\Yaml\Yaml; @@ -212,7 +211,7 @@ public function sessionSettingsProvider() 'cookie_httponly' => true, ], ], - ] + ], ]; } } diff --git a/tests/integration/Core/Repository/ContentServiceAuthorizationTest.php b/tests/integration/Core/Repository/ContentServiceAuthorizationTest.php index 9b7985b196..42501fc2bf 100644 --- a/tests/integration/Core/Repository/ContentServiceAuthorizationTest.php +++ b/tests/integration/Core/Repository/ContentServiceAuthorizationTest.php @@ -11,7 +11,6 @@ use Ibexa\Contracts\Core\Repository\Repository; use Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo; use Ibexa\Contracts\Core\Repository\Values\Content\Location; -use Ibexa\Contracts\Core\Repository\Values\Content\RelationList\RelationListItemInterface; use Ibexa\Contracts\Core\Repository\Values\User\Limitation\LanguageLimitation; use Ibexa\Contracts\Core\Repository\Values\User\Limitation\LocationLimitation; use Ibexa\Contracts\Core\Repository\Values\User\Limitation\SubtreeLimitation; @@ -1197,7 +1196,7 @@ public function testLoadRelationsWithUnauthorizedRelations() // assert each relation /** - * @var RelationListItemInterface $relationListItem + * @var \Ibexa\Contracts\Core\Repository\Values\Content\RelationList\RelationListItemInterface $relationListItem */ foreach ($actualRelations as $relationListItem) { $relation = $relationListItem->getRelation(); diff --git a/tests/integration/Core/Repository/ContentServiceTest.php b/tests/integration/Core/Repository/ContentServiceTest.php index 6ba0d18b71..cfec986d21 100644 --- a/tests/integration/Core/Repository/ContentServiceTest.php +++ b/tests/integration/Core/Repository/ContentServiceTest.php @@ -17,7 +17,6 @@ use Ibexa\Contracts\Core\Repository\Values\Content\ContentCreateStruct; use Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo; use Ibexa\Contracts\Core\Repository\Values\Content\ContentMetadataUpdateStruct; -use Ibexa\Contracts\Core\Repository\Values\Content\DraftList\ContentDraftListItemInterface; use Ibexa\Contracts\Core\Repository\Values\Content\DraftList\Item\UnauthorizedContentDraftListItem; use Ibexa\Contracts\Core\Repository\Values\Content\Field; use Ibexa\Contracts\Core\Repository\Values\Content\Language; @@ -2433,7 +2432,7 @@ public function testLoadContentDraftList() $this->contentService->createContentDraft($demoDesignContentInfo); // Now $contentDrafts should contain two drafted versions - /** @var ContentDraftListItemInterface[] $draftedVersions */ + /** @var \Ibexa\Contracts\Core\Repository\Values\Content\DraftList\ContentDraftListItemInterface[] $draftedVersions */ $draftedVersions = iterator_to_array($this->contentService->loadContentDraftList()->getIterator()); $actual = [ @@ -2478,7 +2477,7 @@ public function testLoadContentDraftsWithFirstParameter() $this->permissionResolver->setCurrentUserReference($oldCurrentUser); // Now $contentDrafts for the previous current user and the new user - /** @var ContentDraftListItemInterface[] $newCurrentUserDrafts */ + /** @var \Ibexa\Contracts\Core\Repository\Values\Content\DraftList\ContentDraftListItemInterface[] $newCurrentUserDrafts */ $newCurrentUserDrafts = iterator_to_array($this->contentService->loadContentDraftList($user)->getIterator()); $oldCurrentUserDrafts = iterator_to_array($this->contentService->loadContentDraftList()->getIterator()); diff --git a/tests/lib/MVC/Symfony/Component/Serializer/SimplifiedRequestNormalizerTest.php b/tests/lib/MVC/Symfony/Component/Serializer/SimplifiedRequestNormalizerTest.php index 7ff7fda1fa..9cc32f0297 100644 --- a/tests/lib/MVC/Symfony/Component/Serializer/SimplifiedRequestNormalizerTest.php +++ b/tests/lib/MVC/Symfony/Component/Serializer/SimplifiedRequestNormalizerTest.php @@ -49,7 +49,7 @@ public function testNormalize(): void public function testNormalizeWithNewConstructor(): void { $request = new SimplifiedRequest( - 'http', + 'http', 'www.example.com', 8080, '/foo', diff --git a/tests/lib/MVC/Symfony/View/ViewManagerTest.php b/tests/lib/MVC/Symfony/View/ViewManagerTest.php index da42a4daac..0d5935bb4a 100644 --- a/tests/lib/MVC/Symfony/View/ViewManagerTest.php +++ b/tests/lib/MVC/Symfony/View/ViewManagerTest.php @@ -14,7 +14,6 @@ use Ibexa\Core\MVC\Symfony\View\Configurator; use Ibexa\Core\MVC\Symfony\View\Manager; use Ibexa\Core\MVC\Symfony\View\View; -use Ibexa\Core\MVC\Symfony\View\ViewProvider; use Ibexa\Core\Repository\ContentService; use Ibexa\Core\Repository\Values\Content\Content; use Ibexa\Core\Repository\Values\Content\Location;