@@ -12,6 +12,10 @@ |
||
| 12 | 12 | |
| 13 | 13 | class InvalidVariationException extends InvalidArgumentException |
| 14 | 14 | { |
| 15 | + /** |
|
| 16 | + * @param string $variationName |
|
| 17 | + * @param string $variationType |
|
| 18 | + */ |
|
| 15 | 19 | public function __construct($variationName, $variationType, $code = 0, Exception $previous = null) |
| 16 | 20 | { |
| 17 | 21 | parent::__construct("Invalid variation '$variationName' for $variationType", $code, $previous); |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use eZ\Publish\Core\Repository\Helper\DomainMapper; |
| 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; |
@@ -100,6 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * Applies dependencies of complex $parameter in $scope. |
| 103 | + * @param string $parameter |
|
| 103 | 104 | */ |
| 104 | 105 | private function addComplexParametersDependencies($parameter, $scope, ContainerBuilder $container) |
| 105 | 106 | { |
@@ -77,6 +77,7 @@ |
||
| 77 | 77 | * Tests if $uri is an IO file uri root. |
| 78 | 78 | * |
| 79 | 79 | * @param string $uri |
| 80 | + * @param string $urlPrefix |
|
| 80 | 81 | * |
| 81 | 82 | * @return bool |
| 82 | 83 | */ |
@@ -1481,7 +1481,7 @@ discard block |
||
| 1481 | 1481 | * |
| 1482 | 1482 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
| 1483 | 1483 | * |
| 1484 | - * @return array |
|
| 1484 | + * @return string[] |
|
| 1485 | 1485 | */ |
| 1486 | 1486 | private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct) |
| 1487 | 1487 | { |
@@ -1508,7 +1508,7 @@ discard block |
||
| 1508 | 1508 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
| 1509 | 1509 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
| 1510 | 1510 | * |
| 1511 | - * @return array |
|
| 1511 | + * @return string[] |
|
| 1512 | 1512 | */ |
| 1513 | 1513 | protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content) |
| 1514 | 1514 | { |
@@ -1632,7 +1632,7 @@ discard block |
||
| 1632 | 1632 | |
| 1633 | 1633 | /** |
| 1634 | 1634 | * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo |
| 1635 | - * @param array $translations |
|
| 1635 | + * @param string[] $translations |
|
| 1636 | 1636 | * |
| 1637 | 1637 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
| 1638 | 1638 | * @throws \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException |
@@ -1052,7 +1052,7 @@ |
||
| 1052 | 1052 | * |
| 1053 | 1053 | * @param \eZ\Publish\API\Repository\Values\User\RoleCreateStruct $roleCreateStruct |
| 1054 | 1054 | * |
| 1055 | - * @return \eZ\Publish\Core\FieldType\ValidationError[][][] |
|
| 1055 | + * @return \eZ\Publish\Core\FieldType\ValidationError[] |
|
| 1056 | 1056 | * |
| 1057 | 1057 | * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException |
| 1058 | 1058 | */ |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * Loads list of aliases by given $locationId. |
| 106 | 106 | * |
| 107 | - * @param mixed $locationId |
|
| 107 | + * @param integer $locationId |
|
| 108 | 108 | * @param bool $custom |
| 109 | 109 | * @param mixed $languageId |
| 110 | 110 | * |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | * @param string $action |
| 276 | 276 | * @param mixed $languageId |
| 277 | - * @param mixed $newId |
|
| 277 | + * @param integer $newId |
|
| 278 | 278 | * @param mixed $parentId |
| 279 | 279 | * @param string $textMD5 |
| 280 | 280 | */ |
@@ -448,9 +448,9 @@ discard block |
||
| 448 | 448 | * |
| 449 | 449 | * Removes given $languageId from entry's language mask |
| 450 | 450 | * |
| 451 | - * @param mixed $parentId |
|
| 451 | + * @param integer $parentId |
|
| 452 | 452 | * @param string $textMD5 |
| 453 | - * @param mixed $languageId |
|
| 453 | + * @param integer $languageId |
|
| 454 | 454 | */ |
| 455 | 455 | protected function removeTranslation($parentId, $textMD5, $languageId) |
| 456 | 456 | { |
@@ -533,8 +533,8 @@ discard block |
||
| 533 | 533 | * |
| 534 | 534 | * Update includes history entries. |
| 535 | 535 | * |
| 536 | - * @param mixed $oldParentId |
|
| 537 | - * @param mixed $newParentId |
|
| 536 | + * @param integer $oldParentId |
|
| 537 | + * @param integer $newParentId |
|
| 538 | 538 | */ |
| 539 | 539 | public function reparent($oldParentId, $newParentId) |
| 540 | 540 | { |
@@ -680,7 +680,7 @@ discard block |
||
| 680 | 680 | /** |
| 681 | 681 | * Returns next value for "id" column. |
| 682 | 682 | * |
| 683 | - * @return mixed |
|
| 683 | + * @return integer |
|
| 684 | 684 | */ |
| 685 | 685 | public function getNextId() |
| 686 | 686 | { |
@@ -823,7 +823,7 @@ discard block |
||
| 823 | 823 | * Loads autogenerated entry id by given $action and optionally $parentId. |
| 824 | 824 | * |
| 825 | 825 | * @param string $action |
| 826 | - * @param mixed|null $parentId |
|
| 826 | + * @param integer $parentId |
|
| 827 | 827 | * |
| 828 | 828 | * @return array |
| 829 | 829 | */ |
@@ -1007,7 +1007,7 @@ discard block |
||
| 1007 | 1007 | /** |
| 1008 | 1008 | * Deletes single custom alias row matched by composite primary key. |
| 1009 | 1009 | * |
| 1010 | - * @param mixed $parentId |
|
| 1010 | + * @param integer $parentId |
|
| 1011 | 1011 | * @param string $textMD5 |
| 1012 | 1012 | * |
| 1013 | 1013 | * @return bool |
@@ -1045,10 +1045,10 @@ discard block |
||
| 1045 | 1045 | * |
| 1046 | 1046 | * If $id is set only autogenerated entries will be removed. |
| 1047 | 1047 | * |
| 1048 | - * @param mixed $action |
|
| 1049 | - * @param mixed|null $id |
|
| 1048 | + * @param string $action |
|
| 1049 | + * @param integer $id |
|
| 1050 | 1050 | * |
| 1051 | - * @return bool |
|
| 1051 | + * @return boolean|null |
|
| 1052 | 1052 | */ |
| 1053 | 1053 | public function remove($action, $id = null) |
| 1054 | 1054 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @param \eZ\Publish\SPI\Persistence\Content\UrlWildcard $urlWildcard |
| 49 | 49 | * |
| 50 | - * @return mixed |
|
| 50 | + * @return integer |
|
| 51 | 51 | */ |
| 52 | 52 | public function insertUrlWildcard(UrlWildcard $urlWildcard) |
| 53 | 53 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * Deletes the UrlWildcard with given $id. |
| 93 | 93 | * |
| 94 | - * @param mixed $id |
|
| 94 | + * @param integer $id |
|
| 95 | 95 | */ |
| 96 | 96 | public function deleteUrlWildcard($id) |
| 97 | 97 | { |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | /** |
| 112 | 112 | * Loads an array with data about UrlWildcard with $id. |
| 113 | 113 | * |
| 114 | - * @param mixed $id |
|
| 114 | + * @param integer $id |
|
| 115 | 115 | * |
| 116 | 116 | * @return array |
| 117 | 117 | */ |
@@ -138,8 +138,8 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * Loads an array with data about UrlWildcards (paged). |
| 140 | 140 | * |
| 141 | - * @param mixed $offset |
|
| 142 | - * @param mixed $limit |
|
| 141 | + * @param integer $offset |
|
| 142 | + * @param integer $limit |
|
| 143 | 143 | * |
| 144 | 144 | * @return array |
| 145 | 145 | */ |
@@ -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. |