@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | * @param \eZ\Publish\SPI\Persistence\Content\Type $type |
331 | 331 | * @param mixed|null $typeId |
332 | 332 | * |
333 | - * @return mixed Type ID |
|
333 | + * @return integer Type ID |
|
334 | 334 | */ |
335 | 335 | public function insertType(Type $type, $typeId = null) |
336 | 336 | { |
@@ -425,8 +425,8 @@ discard block |
||
425 | 425 | /** |
426 | 426 | * Insert assignment of $typeId to $groupId. |
427 | 427 | * |
428 | - * @param mixed $groupId |
|
429 | - * @param mixed $typeId |
|
428 | + * @param integer $groupId |
|
429 | + * @param integer $typeId |
|
430 | 430 | * @param int $status |
431 | 431 | */ |
432 | 432 | public function insertGroupAssignment($groupId, $typeId, $status) |
@@ -457,8 +457,8 @@ discard block |
||
457 | 457 | /** |
458 | 458 | * Deletes a group assignments for a Type. |
459 | 459 | * |
460 | - * @param mixed $groupId |
|
461 | - * @param mixed $typeId |
|
460 | + * @param integer $groupId |
|
461 | + * @param integer $typeId |
|
462 | 462 | * @param int $status |
463 | 463 | */ |
464 | 464 | public function deleteGroupAssignment($groupId, $typeId, $status) |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | /** |
508 | 508 | * Loads data about Group with $identifier. |
509 | 509 | * |
510 | - * @param mixed $identifier |
|
510 | + * @param string $identifier |
|
511 | 511 | * |
512 | 512 | * @return string[][] |
513 | 513 | */ |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | /** |
567 | 567 | * Loads data for all Types in $status in $groupId. |
568 | 568 | * |
569 | - * @param mixed $groupId |
|
569 | + * @param integer $groupId |
|
570 | 570 | * @param int $status |
571 | 571 | * |
572 | 572 | * @return string[][] |
@@ -587,12 +587,12 @@ discard block |
||
587 | 587 | /** |
588 | 588 | * Inserts a $fieldDefinition for $typeId. |
589 | 589 | * |
590 | - * @param mixed $typeId |
|
590 | + * @param integer $typeId |
|
591 | 591 | * @param int $status |
592 | 592 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
593 | 593 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
594 | 594 | * |
595 | - * @return mixed Field definition ID |
|
595 | + * @return integer Field definition ID |
|
596 | 596 | */ |
597 | 597 | public function insertFieldDefinition( |
598 | 598 | $typeId, |
@@ -808,9 +808,9 @@ discard block |
||
808 | 808 | /** |
809 | 809 | * Deletes a field definition. |
810 | 810 | * |
811 | - * @param mixed $typeId |
|
811 | + * @param integer $typeId |
|
812 | 812 | * @param int $status |
813 | - * @param mixed $fieldDefinitionId |
|
813 | + * @param integer $fieldDefinitionId |
|
814 | 814 | */ |
815 | 815 | public function deleteFieldDefinition($typeId, $status, $fieldDefinitionId) |
816 | 816 | { |
@@ -851,7 +851,7 @@ discard block |
||
851 | 851 | /** |
852 | 852 | * Updates a $fieldDefinition for $typeId. |
853 | 853 | * |
854 | - * @param mixed $typeId |
|
854 | + * @param integer $typeId |
|
855 | 855 | * @param int $status |
856 | 856 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
857 | 857 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -994,9 +994,8 @@ discard block |
||
994 | 994 | /** |
995 | 995 | * Update a type with $updateStruct. |
996 | 996 | * |
997 | - * @param mixed $typeId |
|
997 | + * @param integer $typeId |
|
998 | 998 | * @param int $status |
999 | - * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct |
|
1000 | 999 | */ |
1001 | 1000 | public function updateType($typeId, $status, Type $type) |
1002 | 1001 | { |
@@ -1039,7 +1038,7 @@ discard block |
||
1039 | 1038 | /** |
1040 | 1039 | * Loads an array with data about $typeId in $status. |
1041 | 1040 | * |
1042 | - * @param mixed $typeId |
|
1041 | + * @param integer $typeId |
|
1043 | 1042 | * @param int $status |
1044 | 1043 | * |
1045 | 1044 | * @return array Data rows. |
@@ -1081,7 +1080,7 @@ discard block |
||
1081 | 1080 | * Loads an array with data about the type referred to by $remoteId in |
1082 | 1081 | * $status. |
1083 | 1082 | * |
1084 | - * @param mixed $remoteId |
|
1083 | + * @param string $remoteId |
|
1085 | 1084 | * @param int $status |
1086 | 1085 | * |
1087 | 1086 | * @return array(int=>array(string=>mixed)) Data rows. |
@@ -127,18 +127,18 @@ |
||
127 | 127 | * Link word with specific content object (legacy db table: ezsearch_object_word_link). |
128 | 128 | * |
129 | 129 | * @param $wordId |
130 | - * @param $contentId |
|
131 | - * @param $frequency |
|
132 | - * @param $placement |
|
130 | + * @param integer $contentId |
|
131 | + * @param integer $frequency |
|
132 | + * @param integer $placement |
|
133 | 133 | * @param $nextWordId |
134 | 134 | * @param $prevWordId |
135 | - * @param $contentTypeId |
|
135 | + * @param integer $contentTypeId |
|
136 | 136 | * @param $fieldTypeId |
137 | - * @param $published |
|
138 | - * @param $sectionId |
|
137 | + * @param integer $published |
|
138 | + * @param integer $sectionId |
|
139 | 139 | * @param $identifier |
140 | 140 | * @param $integerValue |
141 | - * @param $languageMask |
|
141 | + * @param integer $languageMask |
|
142 | 142 | */ |
143 | 143 | public function addObjectWordLink($wordId, |
144 | 144 | $contentId, |
@@ -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 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | final class ContentViewTwigVariablesSubscriberTest extends TestCase |
24 | 24 | { |
25 | 25 | /** |
26 | - * @return \eZ\Publish\Core\MVC\Symfony\View\ContentView|\PHPUnit\Framework\MockObject\MockObject |
|
26 | + * @return View |
|
27 | 27 | */ |
28 | 28 | private function getContentViewMock(): ContentView |
29 | 29 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use eZ\Publish\Core\Repository\Mapper\ContentDomainMapper; |
19 | 19 | use eZ\Publish\Core\Repository\Values\Content\Content; |
20 | 20 | use eZ\Publish\Core\Repository\Values\Content\VersionInfo; |
21 | -use eZ\Publish\SPI\Persistence\Content\ContentInfo; |
|
22 | 21 | use eZ\Publish\SPI\Persistence\Content\ContentInfo as SPIContentInfo; |
23 | 22 | use eZ\Publish\SPI\Persistence\Content\Location; |
24 | 23 | use eZ\Publish\API\Repository\Values\Content\Location as APILocation; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @see loadMainLocationByContent |
57 | 57 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException |
58 | 58 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException |
59 | - * @param mixed $contentId |
|
59 | + * @param integer $contentId |
|
60 | 60 | * |
61 | 61 | * @return \eZ\Publish\API\Repository\Values\Content\Location|null |
62 | 62 | */ |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException - if the version with the given number does not exist |
227 | 227 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to load this version |
228 | 228 | * |
229 | - * @param mixed $contentId |
|
229 | + * @param integer $contentId |
|
230 | 230 | * @param int $versionNo the version number. If not given the current version is returned. |
231 | 231 | * |
232 | 232 | * @return \eZ\Publish\API\Repository\Values\Content\VersionInfo |
@@ -1482,7 +1482,7 @@ discard block |
||
1482 | 1482 | * |
1483 | 1483 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1484 | 1484 | * |
1485 | - * @return array |
|
1485 | + * @return string[] |
|
1486 | 1486 | */ |
1487 | 1487 | private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct) |
1488 | 1488 | { |
@@ -1509,7 +1509,7 @@ discard block |
||
1509 | 1509 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
1510 | 1510 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
1511 | 1511 | * |
1512 | - * @return array |
|
1512 | + * @return string[] |
|
1513 | 1513 | */ |
1514 | 1514 | protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content) |
1515 | 1515 | { |
@@ -1633,7 +1633,7 @@ discard block |
||
1633 | 1633 | |
1634 | 1634 | /** |
1635 | 1635 | * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo |
1636 | - * @param array $translations |
|
1636 | + * @param string[] $translations |
|
1637 | 1637 | * |
1638 | 1638 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
1639 | 1639 | * @throws \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | /** |
175 | 175 | * Loads a user group for the given id. |
176 | 176 | * |
177 | - * @param mixed $id |
|
177 | + * @param integer $id |
|
178 | 178 | * @param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object. |
179 | 179 | * |
180 | 180 | * @return \eZ\Publish\API\Repository\Values\User\UserGroup |
@@ -449,10 +449,10 @@ discard block |
||
449 | 449 | /** |
450 | 450 | * Loads a user. |
451 | 451 | * |
452 | - * @param mixed $userId |
|
452 | + * @param integer $userId |
|
453 | 453 | * @param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object. |
454 | 454 | * |
455 | - * @return \eZ\Publish\API\Repository\Values\User\User |
|
455 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
456 | 456 | * |
457 | 457 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if a user with the given id was not found |
458 | 458 | */ |
@@ -1378,6 +1378,9 @@ discard block |
||
1378 | 1378 | !empty($userUpdateStruct->maxLogin); |
1379 | 1379 | } |
1380 | 1380 | |
1381 | + /** |
|
1382 | + * @param integer|null $timestamp |
|
1383 | + */ |
|
1381 | 1384 | private function getDateTime(?int $timestamp): ?DateTimeInterface |
1382 | 1385 | { |
1383 | 1386 | if ($timestamp !== null) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * @param string $fieldDefIdentifier |
55 | 55 | * @param string $languageCode |
56 | 56 | * |
57 | - * @return mixed a primitive type or a field type Value object depending on the field type. |
|
57 | + * @return Value|null a primitive type or a field type Value object depending on the field type. |
|
58 | 58 | */ |
59 | 59 | public function getFieldValue(string $fieldDefIdentifier, ?string $languageCode = null): ?Value |
60 | 60 | { |