@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Get initial field data for valid object creation. |
100 | 100 | * |
101 | - * @return mixed |
|
101 | + * @return KeywordValue |
|
102 | 102 | */ |
103 | 103 | public function getValidCreationFieldData() |
104 | 104 | { |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | /** |
194 | 194 | * Get update field externals data. |
195 | 195 | * |
196 | - * @return array |
|
196 | + * @return KeywordValue |
|
197 | 197 | */ |
198 | 198 | public function getValidUpdateFieldData() |
199 | 199 | { |
@@ -373,6 +373,8 @@ discard block |
||
373 | 373 | |
374 | 374 | /** |
375 | 375 | * {@inheritdoc} |
376 | + * @param KeywordValue $fieldData |
|
377 | + * @param ContentType $contentType |
|
376 | 378 | */ |
377 | 379 | protected function createContent($fieldData, $contentType = null) |
378 | 380 | { |
@@ -430,7 +432,7 @@ discard block |
||
430 | 432 | /** |
431 | 433 | * Create and publish content of $contentType with $fieldData. |
432 | 434 | * |
433 | - * @param mixed $fieldData |
|
435 | + * @param string $fieldData |
|
434 | 436 | * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType |
435 | 437 | * @param string $remoteId |
436 | 438 | * |
@@ -99,7 +99,7 @@ |
||
99 | 99 | /** |
100 | 100 | * Perform search by the Subtree Criterion for the given subtree path and return results count. |
101 | 101 | * |
102 | - * @param $subtreePathString |
|
102 | + * @param string $subtreePathString |
|
103 | 103 | * |
104 | 104 | * @return int|null |
105 | 105 | */ |
@@ -20,6 +20,9 @@ discard block |
||
20 | 20 | { |
21 | 21 | private const URL_CONTENT_TYPE_IDENTIFIER = 'link_ct'; |
22 | 22 | |
23 | + /** |
|
24 | + * @param integer $expectedTotalCount |
|
25 | + */ |
|
23 | 26 | protected function doTestFindUrls(URLQuery $query, array $expectedUrls, $expectedTotalCount = null, $ignoreOrder = true) |
24 | 27 | { |
25 | 28 | $repository = $this->getRepository(); |
@@ -37,6 +40,9 @@ discard block |
||
37 | 40 | $this->assertSearchResultItems($searchResult, $expectedUrls, $ignoreOrder); |
38 | 41 | } |
39 | 42 | |
43 | + /** |
|
44 | + * @param boolean $ignoreOrder |
|
45 | + */ |
|
40 | 46 | protected function assertSearchResultItems(SearchResult $searchResult, array $expectedUrls, $ignoreOrder) |
41 | 47 | { |
42 | 48 | $this->assertCount(count($expectedUrls), $searchResult->items); |
@@ -332,7 +332,7 @@ |
||
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
335 | - * @param mixed $locationId |
|
335 | + * @param integer $locationId |
|
336 | 336 | * @param bool $count |
337 | 337 | * |
338 | 338 | * @return \Doctrine\DBAL\Driver\Statement |
@@ -1239,7 +1239,7 @@ discard block |
||
1239 | 1239 | /** |
1240 | 1240 | * Create test Content with ezcountry field having multiple countries selected. |
1241 | 1241 | * |
1242 | - * @return \eZ\Publish\API\Repository\Values\Content\Content[] |
|
1242 | + * @return Content |
|
1243 | 1243 | */ |
1244 | 1244 | protected function createMultipleCountriesContent() |
1245 | 1245 | { |
@@ -3878,6 +3878,7 @@ discard block |
||
3878 | 3878 | * Test for the findContent() method. |
3879 | 3879 | * |
3880 | 3880 | * @see \eZ\Publish\API\Repository\SearchService::findContent() |
3881 | + * @param string $queryType |
|
3881 | 3882 | */ |
3882 | 3883 | public function testUserMetadataGroupHorizontalFilterContent($queryType = null) |
3883 | 3884 | { |
@@ -3967,6 +3968,7 @@ discard block |
||
3967 | 3968 | * Test for the findLocations() method. |
3968 | 3969 | * |
3969 | 3970 | * @see \eZ\Publish\API\Repository\SearchService::findLocations() |
3971 | + * @param string $queryType |
|
3970 | 3972 | */ |
3971 | 3973 | public function testUserMetadataGroupHorizontalFilterLocation($queryType = null) |
3972 | 3974 | { |
@@ -4686,7 +4688,7 @@ discard block |
||
4686 | 4688 | * |
4687 | 4689 | * @param callable|null $closure |
4688 | 4690 | * |
4689 | - * @return callable |
|
4691 | + * @return \Closure |
|
4690 | 4692 | */ |
4691 | 4693 | private function getContentInfoFixtureClosure($closure = null) |
4692 | 4694 | { |
@@ -4787,7 +4789,7 @@ discard block |
||
4787 | 4789 | /** |
4788 | 4790 | * @param string $findMethod |
4789 | 4791 | * @param \eZ\Publish\API\Repository\Values\Content\Query $query |
4790 | - * @param array $languages |
|
4792 | + * @param string[] $languages |
|
4791 | 4793 | * @param bool $useAlwaysAvailable |
4792 | 4794 | * |
4793 | 4795 | * @throws \InvalidArgumentException |
@@ -93,7 +93,7 @@ |
||
93 | 93 | /** |
94 | 94 | * Create 2 * number of remote IDs test data sets (one for Content, another for Location). |
95 | 95 | * |
96 | - * @return iterable |
|
96 | + * @return \Generator |
|
97 | 97 | */ |
98 | 98 | public function providerForTestIndexingRemoteId(): iterable |
99 | 99 | { |