@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
| 143 | - * @return \eZ\Publish\Core\REST\Common\RequestParser|\PHPUnit_Framework_MockObject_MockObject |
|
| 143 | + * @return \eZ\Publish\Core\REST\Common\RequestParser |
|
| 144 | 144 | */ |
| 145 | 145 | protected function getRequestParser() |
| 146 | 146 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * @return \Symfony\Component\Routing\RouterInterface|\PHPUnit_Framework_MockObject_MockObject |
|
| 155 | + * @return \Symfony\Component\Routing\RouterInterface |
|
| 156 | 156 | */ |
| 157 | 157 | protected function getRouterMock() |
| 158 | 158 | { |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | /** |
| 195 | - * @return \Symfony\Component\Routing\RouterInterface|\PHPUnit_Framework_MockObject_MockObject |
|
| 195 | + * @return \Symfony\Component\Routing\RouterInterface |
|
| 196 | 196 | */ |
| 197 | 197 | protected function getTemplatedRouterMock() |
| 198 | 198 | { |
@@ -525,6 +525,11 @@ |
||
| 525 | 525 | $relationProcessor->processFieldRelations([], 24, 2, $contentTypeMock, $existingRelations); |
| 526 | 526 | } |
| 527 | 527 | |
| 528 | + /** |
|
| 529 | + * @param integer $id |
|
| 530 | + * @param null|integer $fieldDefinitionId |
|
| 531 | + * @param integer $contentId |
|
| 532 | + */ |
|
| 528 | 533 | protected function getStubbedRelation($id, $type, $fieldDefinitionId, $contentId) |
| 529 | 534 | { |
| 530 | 535 | return new \eZ\Publish\Core\Repository\Values\Content\Relation( |
@@ -113,6 +113,9 @@ discard block |
||
| 113 | 113 | $output->writeln('Finished re-indexing'); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param boolean $commit |
|
| 118 | + */ |
|
| 116 | 119 | protected function indexIteratively(InputInterface $input, OutputInterface $output, $iterationCount, $commit) |
| 117 | 120 | { |
| 118 | 121 | if ($contentIds = $input->getOption('content-ids')) { |
@@ -160,6 +163,10 @@ discard block |
||
| 160 | 163 | } |
| 161 | 164 | |
| 162 | 165 | |
| 166 | + /** |
|
| 167 | + * @param integer $processCount |
|
| 168 | + * @param integer $iterationCount |
|
| 169 | + */ |
|
| 163 | 170 | private function runParallelProcess(ProgressBar $progress, Statement $stmt, $processCount, $iterationCount, $commit) |
| 164 | 171 | { |
| 165 | 172 | /** |
@@ -237,7 +244,7 @@ discard block |
||
| 237 | 244 | * @param \Doctrine\DBAL\Driver\Statement $stmt |
| 238 | 245 | * @param int $iterationCount |
| 239 | 246 | * |
| 240 | - * @return int[][] Return an array of arrays, each array contains content id's of $iterationCount. |
|
| 247 | + * @return \Generator Return an array of arrays, each array contains content id's of $iterationCount. |
|
| 241 | 248 | */ |
| 242 | 249 | private function fetchIteration(Statement $stmt, $iterationCount) |
| 243 | 250 | { |