Skip to content

Commit cc341ec

Browse files
committed
[CS] Aligned codebase with ibexa/code-style#18 changes
1 parent 700e205 commit cc341ec

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

src/lib/Tab/Dashboard/PagerLocationToDataMapper.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Ibexa\Contracts\Core\Repository\Values\Content\Language;
1717
use Ibexa\Contracts\Core\Repository\Values\Content\Location;
1818
use Ibexa\Contracts\Core\Repository\Values\Content\VersionInfo;
19+
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
1920
use Ibexa\Contracts\Core\Repository\Values\User\User;
2021
use Ibexa\Core\Repository\LocationResolver\LocationResolver;
2122
use Pagerfanta\Pagerfanta;
@@ -50,11 +51,11 @@ public function __construct(
5051
* 'name': string,
5152
* 'type': ?string,
5253
* 'language': string,
53-
* 'available_enabled_translations': \Ibexa\Contracts\Core\Repository\Values\Content\Language[],
54-
* 'contributor': ?\Ibexa\Contracts\Core\Repository\Values\User\User,
55-
* 'content_type': \Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType,
54+
* 'available_enabled_translations': Language[],
55+
* 'contributor': ?User,
56+
* 'content_type': ContentType,
5657
* 'modified': \DateTime,
57-
* 'resolvedLocation': \Ibexa\Contracts\Core\Repository\Values\Content\Location
58+
* 'resolvedLocation': Location
5859
* }
5960
* >
6061
*

tests/bundle/ControllerArgumentResolver/ContentTreeChildrenQueryArgumentResolverTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\ContentTypeIdentifier;
1818
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd;
1919
use Ibexa\Contracts\Core\Repository\Values\Content\Query\CriterionInterface;
20+
use Ibexa\Contracts\Core\Repository\Values\Content\Query\CriterionInterface as CriterionInterfaceAlias;
2021
use Ibexa\Contracts\Rest\Input\Parser\Query\Criterion\CriterionProcessorInterface;
22+
use Ibexa\Contracts\Rest\Input\Parser\Query\Criterion\CriterionProcessorInterface as CriterionProcessorInterfaceAlias;
2123
use PHPUnit\Framework\MockObject\MockObject;
2224
use PHPUnit\Framework\TestCase;
2325
use Symfony\Component\HttpFoundation\Request;
@@ -26,9 +28,7 @@
2628
use Traversable;
2729

2830
/**
29-
* @phpstan-type TCriterionProcessor \Ibexa\Contracts\Rest\Input\Parser\Query\Criterion\CriterionProcessorInterface<
30-
* \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion
31-
* >
31+
* @phpstan-type TCriterionProcessor CriterionProcessorInterfaceAlias<CriterionInterfaceAlias>
3232
*
3333
* @covers \Ibexa\Bundle\AdminUi\ControllerArgumentResolver\ContentTreeChildrenQueryArgumentResolver
3434
*/
@@ -66,7 +66,7 @@ public function testSupports(
6666
/**
6767
* @return iterable<array{
6868
* bool,
69-
* \Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
69+
* ArgumentMetadata
7070
* }>
7171
*/
7272
public function provideDataForTestSupports(): iterable
@@ -137,9 +137,9 @@ public function testResolve(
137137

138138
/**
139139
* @return iterable<array{
140-
* \Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion,
141-
* \Symfony\Component\HttpFoundation\Request,
142-
* \Traversable<\Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion>,
140+
* Criterion,
141+
* Request,
142+
* Traversable<Criterion>,
143143
* 3?: array<string, string>,
144144
* }>
145145
*

tests/lib/Form/Data/FormMapper/ContentTypeDraftMapperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private function createFieldDefinitionCollectionForMetaFieldDefinitionsData(): F
162162
/**
163163
* @param array<string, array{
164164
* 'identifier': string,
165-
* 'defaultValue': ?\Ibexa\Contracts\Core\Repository\Values\ValueObject,
165+
* 'defaultValue': ?ValueObject,
166166
* 'name': string,
167167
* 'position': int,
168168
* }> $fieldDefinitionsConfig

tests/lib/Form/DataTransformer/LanguageTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testReverseTransformWithNotFoundException(): void
103103

104104
/**
105105
* @return array<string, array{
106-
* \Ibexa\Contracts\Core\Repository\Values\Content\Language|null,
106+
* Language|null,
107107
* string|null,
108108
* }>
109109
*/

tests/lib/Permission/LimitationResolverTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public function testGetLanguageLimitations(
9191
* name: string,
9292
* hasAccess: bool,
9393
* }>,
94-
* \Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo,
95-
* \Ibexa\Contracts\Core\Repository\Values\Content\Location,
96-
* \Ibexa\Contracts\Core\Repository\Values\User\LookupLimitationResult,
97-
* iterable<\Ibexa\Contracts\Core\Repository\Values\Content\Language>
94+
* ContentInfo,
95+
* Location,
96+
* LookupLimitationResult,
97+
* iterable<Language>
9898
* }>
9999
*/
100100
public function provideDataForTestGetLanguageLimitations(): iterable

0 commit comments

Comments
 (0)