@@ -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 | { |
@@ -155,7 +155,7 @@ |
||
155 | 155 | * |
156 | 156 | * @param mixed $fieldId |
157 | 157 | * |
158 | - * @return array |
|
158 | + * @return string |
|
159 | 159 | */ |
160 | 160 | protected function fetchUserId($fieldId) |
161 | 161 | { |
@@ -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 | { |
@@ -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; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | private $fieldTypeUnderTest; |
26 | 26 | |
27 | 27 | /** |
28 | - * @return \eZ\Publish\Core\Persistence\TransformationProcessor|\PHPUnit\Framework\MockObject\MockObject |
|
28 | + * @return TransformationProcessor |
|
29 | 29 | */ |
30 | 30 | protected function getTransformationProcessorMock() |
31 | 31 | { |
@@ -682,7 +682,6 @@ discard block |
||
682 | 682 | } |
683 | 683 | |
684 | 684 | /** |
685 | - * @param mixed $inputValue |
|
686 | 685 | * @param array $expectedResult |
687 | 686 | * |
688 | 687 | * @dataProvider provideInputForFromHash |
@@ -830,7 +829,6 @@ discard block |
||
830 | 829 | } |
831 | 830 | |
832 | 831 | /** |
833 | - * @param mixed $inputConfiguration |
|
834 | 832 | * |
835 | 833 | * @dataProvider provideValidFieldSettings |
836 | 834 | */ |
@@ -858,7 +856,6 @@ discard block |
||
858 | 856 | } |
859 | 857 | |
860 | 858 | /** |
861 | - * @param mixed $inputConfiguration |
|
862 | 859 | * |
863 | 860 | * @dataProvider provideValidFieldSettings |
864 | 861 | */ |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | } |
356 | 356 | |
357 | 357 | /** |
358 | - * @return array |
|
358 | + * @return string[] |
|
359 | 359 | */ |
360 | 360 | protected function getContext() |
361 | 361 | { |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | protected $loggerMock; |
369 | 369 | |
370 | 370 | /** |
371 | - * @return \Psr\Log\LoggerInterface|\PHPUnit\Framework\MockObject\MockObject |
|
371 | + * @return integer |
|
372 | 372 | */ |
373 | 373 | protected function getLoggerMock() |
374 | 374 | { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * @return \eZ\Publish\Core\Repository\Repository|\PHPUnit\Framework\MockObject\MockObject |
|
101 | + * @return \eZ\Publish\API\Repository\Repository |
|
102 | 102 | */ |
103 | 103 | private function getRepositoryMock() |
104 | 104 | { |
@@ -66,6 +66,9 @@ discard block |
||
66 | 66 | ); |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param string $default |
|
71 | + */ |
|
69 | 72 | private function buildList($groups, $default) |
70 | 73 | { |
71 | 74 | return new ArrayTranslatorFieldsGroupsList( |
@@ -76,7 +79,7 @@ discard block |
||
76 | 79 | } |
77 | 80 | |
78 | 81 | /** |
79 | - * @return \Symfony\Component\Translation\TranslatorInterface|\PHPUnit\Framework\MockObject\MockObject |
|
82 | + * @return TranslatorInterface |
|
80 | 83 | */ |
81 | 84 | private function getTranslatorMock() |
82 | 85 | { |