@@ -369,6 +369,7 @@ discard block |
||
| 369 | 369 | /** |
| 370 | 370 | * @covers \eZ\Publish\Core\FieldType\FieldType::isEmptyValue |
| 371 | 371 | * @dataProvider providerForTestIsEmptyValue |
| 372 | + * @param \eZ\Publish\SPI\FieldType\Value|null $value |
|
| 372 | 373 | */ |
| 373 | 374 | public function testIsEmptyValue($value) |
| 374 | 375 | { |
@@ -380,6 +381,7 @@ discard block |
||
| 380 | 381 | /** |
| 381 | 382 | * @covers \eZ\Publish\Core\FieldType\FieldType::isEmptyValue |
| 382 | 383 | * @dataProvider providerForTestIsNotEmptyValue |
| 384 | + * @param \eZ\Publish\SPI\FieldType\Value|null $value |
|
| 383 | 385 | */ |
| 384 | 386 | public function testIsNotEmptyValue($value) |
| 385 | 387 | { |
@@ -509,6 +511,7 @@ discard block |
||
| 509 | 511 | * Creates content with $fieldData. |
| 510 | 512 | * |
| 511 | 513 | * @param mixed $fieldData |
| 514 | + * @param Repository\Values\ContentType\ContentType $contentType |
|
| 512 | 515 | * |
| 513 | 516 | * @return \eZ\Publish\API\Repository\Values\Content\Content |
| 514 | 517 | */ |
@@ -109,6 +109,9 @@ |
||
| 109 | 109 | $conn->exec('DELETE FROM ezcontentobject_link WHERE relation_type = 0'); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param integer $totalCount |
|
| 114 | + */ |
|
| 112 | 115 | protected function executeList(OutputInterface $output, $totalCount) |
| 113 | 116 | { |
| 114 | 117 | $table = new Table($output); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param \eZ\Publish\SPI\Persistence\Content\VersionInfo $versionInfo |
| 80 | 80 | * @param \eZ\Publish\SPI\Persistence\Content\Field $field |
| 81 | 81 | * |
| 82 | - * @return bool |
|
| 82 | + * @return boolean|null |
|
| 83 | 83 | */ |
| 84 | 84 | protected function updateFieldData(VersionInfo $versionInfo, Field $field) |
| 85 | 85 | { |
@@ -163,6 +163,7 @@ discard block |
||
| 163 | 163 | * If no data is found, null is returned. |
| 164 | 164 | * |
| 165 | 165 | * @param int $fieldId |
| 166 | + * @param integer $versionNo |
|
| 166 | 167 | * |
| 167 | 168 | * @return array|null |
| 168 | 169 | */ |
@@ -206,7 +206,7 @@ |
||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | - * @return array |
|
| 209 | + * @return string[] |
|
| 210 | 210 | */ |
| 211 | 211 | protected function getContext() |
| 212 | 212 | { |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | class FloatValueValidatorTest extends TestCase |
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | - * @return float |
|
| 22 | + * @return integer |
|
| 23 | 23 | */ |
| 24 | 24 | protected function getMinFloatValue() |
| 25 | 25 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @return float |
|
| 30 | + * @return integer |
|
| 31 | 31 | */ |
| 32 | 32 | protected function getMaxFloatValue() |
| 33 | 33 | { |
@@ -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 |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * Get initial field data for valid object creation. |
| 111 | 111 | * |
| 112 | - * @return mixed |
|
| 112 | + * @return TimeValue |
|
| 113 | 113 | */ |
| 114 | 114 | public function getValidCreationFieldData() |
| 115 | 115 | { |
@@ -268,6 +268,9 @@ discard block |
||
| 268 | 268 | $this->assertContainsEzRemoteInvalidLinkError($contentRemoteId, $errors); |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | + /** |
|
| 272 | + * @param integer $locationId |
|
| 273 | + */ |
|
| 271 | 274 | private function assertContainsEzLocationInvalidLinkError($locationId, array $errors) |
| 272 | 275 | { |
| 273 | 276 | $format = 'Invalid link "ezlocation://%d": target location cannot be found'; |
@@ -275,6 +278,9 @@ discard block |
||
| 275 | 278 | $this->assertContains(sprintf($format, $locationId), $errors); |
| 276 | 279 | } |
| 277 | 280 | |
| 281 | + /** |
|
| 282 | + * @param integer $contentId |
|
| 283 | + */ |
|
| 278 | 284 | private function assertContainsEzContentInvalidLinkError($contentId, array $errors) |
| 279 | 285 | { |
| 280 | 286 | $format = 'Invalid link "ezcontent://%d": target content cannot be found'; |
@@ -282,6 +288,9 @@ discard block |
||
| 282 | 288 | $this->assertContains(sprintf($format, $contentId), $errors); |
| 283 | 289 | } |
| 284 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $contentId |
|
| 293 | + */ |
|
| 285 | 294 | private function assertContainsEzRemoteInvalidLinkError($contentId, array $errors) |
| 286 | 295 | { |
| 287 | 296 | $format = 'Invalid link "ezremote://%s": target content cannot be found'; |
@@ -303,6 +312,9 @@ discard block |
||
| 303 | 312 | ->getMock(); |
| 304 | 313 | } |
| 305 | 314 | |
| 315 | + /** |
|
| 316 | + * @param string $scheme |
|
| 317 | + */ |
|
| 306 | 318 | private function createInputDocument($scheme, $id) |
| 307 | 319 | { |
| 308 | 320 | $url = $scheme . '://' . $id; |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * Get handler with required custom field types registered. |
| 50 | 50 | * |
| 51 | - * @return Handler |
|
| 51 | + * @return \eZ\Publish\SPI\Persistence\Handler |
|
| 52 | 52 | */ |
| 53 | 53 | public function getCustomHandler() |
| 54 | 54 | { |