@@ -161,6 +161,9 @@ discard block |
||
161 | 161 | } |
162 | 162 | } |
163 | 163 | |
164 | + /** |
|
165 | + * @param boolean $commit |
|
166 | + */ |
|
164 | 167 | protected function indexIncrementally(InputInterface $input, OutputInterface $output, $iterationCount, $commit) |
165 | 168 | { |
166 | 169 | if ($contentIds = $input->getOption('content-ids')) { |
@@ -223,6 +226,10 @@ discard block |
||
223 | 226 | $progress->finish(); |
224 | 227 | } |
225 | 228 | |
229 | + /** |
|
230 | + * @param integer $processCount |
|
231 | + * @param integer $iterationCount |
|
232 | + */ |
|
226 | 233 | private function runParallelProcess(ProgressBar $progress, Statement $stmt, $processCount, $iterationCount, $commit) |
227 | 234 | { |
228 | 235 | /** |
@@ -277,7 +284,7 @@ discard block |
||
277 | 284 | } |
278 | 285 | |
279 | 286 | /** |
280 | - * @param mixed $locationId |
|
287 | + * @param integer $locationId |
|
281 | 288 | * @param bool $count |
282 | 289 | * |
283 | 290 | * @return \Doctrine\DBAL\Driver\Statement |
@@ -90,7 +90,7 @@ |
||
90 | 90 | /** |
91 | 91 | * @dataProvider indexingProvider |
92 | 92 | * |
93 | - * @param array|null $value |
|
93 | + * @param array|null $values |
|
94 | 94 | * @param \Psr\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject|null $logger |
95 | 95 | */ |
96 | 96 | public function testIndexing(array $values = null, $logger = null) |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * @dataProvider processPurgeClientProvider |
63 | 63 | * |
64 | 64 | * @param string $paramValue |
65 | - * @param string $expectedServiceAlias |
|
65 | + * @param string $expectedServiceId |
|
66 | 66 | * @param \Symfony\Component\DependencyInjection\Definition|null $customService |
67 | 67 | */ |
68 | 68 | public function testProcessPurgeClient($paramValue, $expectedServiceId, Definition $customService = null) |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | */ |
16 | 16 | abstract class BaseURLServiceTest extends BaseTest |
17 | 17 | { |
18 | + /** |
|
19 | + * @param integer $exectedTotalCount |
|
20 | + */ |
|
18 | 21 | protected function doTestFindUrls(URLQuery $query, array $expectedUrls, $exectedTotalCount = null, $ignoreOrder = true) |
19 | 22 | { |
20 | 23 | $repository = $this->getRepository(); |
@@ -32,6 +35,9 @@ discard block |
||
32 | 35 | $this->assertSearchResultItems($searchResult, $expectedUrls, $ignoreOrder); |
33 | 36 | } |
34 | 37 | |
38 | + /** |
|
39 | + * @param boolean $ignoreOrder |
|
40 | + */ |
|
35 | 41 | protected function assertSearchResultItems(SearchResult $searchResult, array $expectedUrls, $ignoreOrder) |
36 | 42 | { |
37 | 43 | $this->assertCount(count($expectedUrls), $searchResult->items); |
@@ -212,7 +212,6 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues |
214 | 214 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
215 | - * @param array $propertyNames |
|
216 | 215 | */ |
217 | 216 | protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = array()) |
218 | 217 | { |
@@ -474,7 +473,7 @@ discard block |
||
474 | 473 | /** |
475 | 474 | * Create role of a given name with the given policies described by an array. |
476 | 475 | * |
477 | - * @param $roleName |
|
476 | + * @param string $roleName |
|
478 | 477 | * @param array $policiesData [['module' => 'content', 'function' => 'read', 'limitations' => []] |
479 | 478 | * |
480 | 479 | * @return \eZ\Publish\API\Repository\Values\User\Role |
@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * Get response status code. |
125 | 125 | * |
126 | - * @return string |
|
126 | + * @return integer |
|
127 | 127 | * |
128 | 128 | * @throws \RuntimeException If request hasn't been send already |
129 | 129 | */ |
@@ -886,6 +886,7 @@ |
||
886 | 886 | |
887 | 887 | /** |
888 | 888 | * Get Test Double for TrashItem for exception testing and similar. |
889 | + * @param integer $trashId |
|
889 | 890 | */ |
890 | 891 | private function getTrashItemDouble($trashId, $contentId = 44, $parentLocationId = 2) |
891 | 892 | { |
@@ -1270,7 +1270,7 @@ discard block |
||
1270 | 1270 | |
1271 | 1271 | /** |
1272 | 1272 | * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo |
1273 | - * @param $fieldDefinitionIdentifier |
|
1273 | + * @param string $fieldDefinitionIdentifier |
|
1274 | 1274 | * @param array $fieldValues |
1275 | 1275 | * |
1276 | 1276 | * @return \eZ\Publish\API\Repository\Values\Content\Content |
@@ -1387,6 +1387,10 @@ discard block |
||
1387 | 1387 | $contentTypeService->publishContentTypeDraft($contentTypeDraft); |
1388 | 1388 | } |
1389 | 1389 | |
1390 | + /** |
|
1391 | + * @param string $expectedPath |
|
1392 | + * @param boolean $expectedIsHistory |
|
1393 | + */ |
|
1390 | 1394 | private function assertUrlAliasPropertiesCorrect( |
1391 | 1395 | Location $expectedDestinationLocation, |
1392 | 1396 | $expectedPath, |
@@ -763,7 +763,7 @@ discard block |
||
763 | 763 | /** |
764 | 764 | * Test for the loadLocationChildren() method. |
765 | 765 | * |
766 | - * @return \eZ\Publish\API\Repository\Values\Content\Location[] |
|
766 | + * @return LocationList |
|
767 | 767 | * |
768 | 768 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset) |
769 | 769 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren |
@@ -827,7 +827,7 @@ discard block |
||
827 | 827 | /** |
828 | 828 | * Test for the loadLocationChildren() method. |
829 | 829 | * |
830 | - * @return \eZ\Publish\API\Repository\Values\Content\Location[] |
|
830 | + * @return LocationList |
|
831 | 831 | * |
832 | 832 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit) |
833 | 833 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildren |
@@ -856,7 +856,7 @@ discard block |
||
856 | 856 | /** |
857 | 857 | * Test for the loadLocationChildren() method. |
858 | 858 | * |
859 | - * @param \eZ\Publish\API\Repository\Values\Content\Location[] $locations |
|
859 | + * @param LocationList $locations |
|
860 | 860 | * |
861 | 861 | * @see \eZ\Publish\API\Repository\LocationService::loadLocationChildren($location, $offset, $limit) |
862 | 862 | * @depends eZ\Publish\API\Repository\Tests\LocationServiceTest::testLoadLocationChildrenWithOffsetAndLimit |
@@ -1140,7 +1140,7 @@ discard block |
||
1140 | 1140 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
1141 | 1141 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
1142 | 1142 | * |
1143 | - * @return int[] |
|
1143 | + * @return Content[] |
|
1144 | 1144 | */ |
1145 | 1145 | public function testSwapLocationForMainAndSecondaryLocation() |
1146 | 1146 | { |
@@ -2342,7 +2342,7 @@ discard block |
||
2342 | 2342 | * Assert generated aliases to expected alias return. |
2343 | 2343 | * |
2344 | 2344 | * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService |
2345 | - * @param array $expectedAliases |
|
2345 | + * @param string[] $expectedAliases |
|
2346 | 2346 | */ |
2347 | 2347 | protected function assertGeneratedAliases($urlAliasService, array $expectedAliases) |
2348 | 2348 | { |
@@ -2354,7 +2354,7 @@ discard block |
||
2354 | 2354 | |
2355 | 2355 | /** |
2356 | 2356 | * @param \eZ\Publish\API\Repository\URLAliasService $urlAliasService |
2357 | - * @param array $expectedSubItemAliases |
|
2357 | + * @param string[] $expectedSubItemAliases |
|
2358 | 2358 | */ |
2359 | 2359 | private function assertAliasesBeforeCopy($urlAliasService, array $expectedSubItemAliases) |
2360 | 2360 | { |