@@ -15,6 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | abstract class AbstractViewTest extends TestCase |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @param string $template |
|
| 20 | + */ |
|
| 18 | 21 | abstract protected function createViewUnderTest($template = null, array $parameters = [], $viewType = 'full'): View; |
| 19 | 22 | |
| 20 | 23 | /** |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * @throws InvalidArgumentType On invalid $contentType |
| 242 | 242 | * |
| 243 | 243 | * @param \eZ\Publish\SPI\Persistence\Content\Field[] $spiFields |
| 244 | - * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType|\eZ\Publish\SPI\Persistence\Content\Type $contentType |
|
| 244 | + * @param ContentType $contentType |
|
| 245 | 245 | * @param array $prioritizedLanguages A language priority, filters returned fields and is used as prioritized language code on |
| 246 | 246 | * returned value object. If not given all languages are returned. |
| 247 | 247 | * @param string|null $alwaysAvailableLanguage Language code fallback if a given field is not found in $prioritizedLanguages |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | * @param \eZ\Publish\API\Repository\Values\Content\Location $parentLocation |
| 685 | 685 | * @param mixed $mainLocation |
| 686 | 686 | * @param mixed $contentId |
| 687 | - * @param mixed $contentVersionNo |
|
| 687 | + * @param null|integer $contentVersionNo |
|
| 688 | 688 | * |
| 689 | 689 | * @return \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct |
| 690 | 690 | */ |
@@ -50,6 +50,9 @@ |
||
| 50 | 50 | return null; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @return Field |
|
| 55 | + */ |
|
| 53 | 56 | private function getFieldByIdentifier(string $identifier, array $fields): ?Field |
| 54 | 57 | { |
| 55 | 58 | /** @var \eZ\Publish\API\Repository\Values\Content\Field $field */ |
@@ -68,6 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * {@inheritdoc} |
| 71 | + * @param string $key |
|
| 71 | 72 | */ |
| 72 | 73 | public function getItem($key) |
| 73 | 74 | { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * @see \eZ\Publish\API\Repository\PermissionResolver::canUser() |
| 51 | 51 | * |
| 52 | 52 | * @param TokenInterface $token A TokenInterface instance |
| 53 | - * @param object $object The object to secure |
|
| 53 | + * @param \stdClass $object The object to secure |
|
| 54 | 54 | * @param array $attributes An array of attributes associated with the method being invoked |
| 55 | 55 | * |
| 56 | 56 | * @return int either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * @param mixed $contentId |
| 221 | 221 | * @param int $versionNo the version number. If not given the current version is returned. |
| 222 | 222 | * |
| 223 | - * @return \eZ\Publish\API\Repository\Values\Content\VersionInfo |
|
| 223 | + * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
| 224 | 224 | */ |
| 225 | 225 | public function loadVersionInfoById($contentId, $versionNo = null) |
| 226 | 226 | { |
@@ -1397,7 +1397,7 @@ discard block |
||
| 1397 | 1397 | * |
| 1398 | 1398 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
| 1399 | 1399 | * |
| 1400 | - * @return array |
|
| 1400 | + * @return string[] |
|
| 1401 | 1401 | */ |
| 1402 | 1402 | private function getUpdatedLanguageCodes(APIContentUpdateStruct $contentUpdateStruct) |
| 1403 | 1403 | { |
@@ -1424,7 +1424,7 @@ discard block |
||
| 1424 | 1424 | * @param \eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct $contentUpdateStruct |
| 1425 | 1425 | * @param \eZ\Publish\API\Repository\Values\Content\Content $content |
| 1426 | 1426 | * |
| 1427 | - * @return array |
|
| 1427 | + * @return string[] |
|
| 1428 | 1428 | */ |
| 1429 | 1429 | protected function getLanguageCodesForUpdate(APIContentUpdateStruct $contentUpdateStruct, APIContent $content) |
| 1430 | 1430 | { |
@@ -1553,7 +1553,7 @@ discard block |
||
| 1553 | 1553 | |
| 1554 | 1554 | /** |
| 1555 | 1555 | * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $versionInfo |
| 1556 | - * @param array $translations |
|
| 1556 | + * @param string[] $translations |
|
| 1557 | 1557 | * |
| 1558 | 1558 | * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException |
| 1559 | 1559 | * @throws \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException |
@@ -236,7 +236,6 @@ discard block |
||
| 236 | 236 | * |
| 237 | 237 | * @param \eZ\Publish\API\Repository\Values\ValueObject $expectedValues |
| 238 | 238 | * @param \eZ\Publish\API\Repository\Values\ValueObject $actualObject |
| 239 | - * @param array $propertyNames |
|
| 240 | 239 | */ |
| 241 | 240 | protected function assertStructPropertiesCorrect(ValueObject $expectedValues, ValueObject $actualObject, array $additionalProperties = []) |
| 242 | 241 | { |
@@ -297,6 +296,7 @@ discard block |
||
| 297 | 296 | |
| 298 | 297 | /** |
| 299 | 298 | * Create a user in editor user group. |
| 299 | + * @param string $email |
|
| 300 | 300 | */ |
| 301 | 301 | protected function createUserVersion1(string $login = 'user', ?string $email = null): User |
| 302 | 302 | { |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | /** |
| 526 | 526 | * Create role of a given name with the given policies described by an array. |
| 527 | 527 | * |
| 528 | - * @param $roleName |
|
| 528 | + * @param string $roleName |
|
| 529 | 529 | * @param array $policiesData [['module' => 'content', 'function' => 'read', 'limitations' => []] |
| 530 | 530 | * |
| 531 | 531 | * @return \eZ\Publish\API\Repository\Values\User\Role |
@@ -349,7 +349,7 @@ |
||
| 349 | 349 | /** |
| 350 | 350 | * Remove role from user or user group, by assignment ID. |
| 351 | 351 | * |
| 352 | - * @param mixed $roleAssignmentId |
|
| 352 | + * @param integer $roleAssignmentId |
|
| 353 | 353 | */ |
| 354 | 354 | public function removeRoleAssignmentById($roleAssignmentId) |
| 355 | 355 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | /** |
| 201 | 201 | * Delete user with the given ID. |
| 202 | 202 | * |
| 203 | - * @param mixed $userId |
|
| 203 | + * @param integer $userId |
|
| 204 | 204 | * |
| 205 | 205 | * @throws \eZ\Publish\API\Repository\Exceptions\NotImplementedException |
| 206 | 206 | */ |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | /** |
| 327 | 327 | * Loads a role draft by the original role ID. |
| 328 | 328 | * |
| 329 | - * @param mixed $roleId ID of the role the draft was created from. |
|
| 329 | + * @param integer $roleId ID of the role the draft was created from. |
|
| 330 | 330 | * |
| 331 | 331 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If role is not found |
| 332 | 332 | * |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | /** |
| 503 | 503 | * Returns the user policies associated with the user (including inherited policies from user groups). |
| 504 | 504 | * |
| 505 | - * @param mixed $userId |
|
| 505 | + * @param integer $userId |
|
| 506 | 506 | * |
| 507 | 507 | * @return \eZ\Publish\SPI\Persistence\User\Policy[] |
| 508 | 508 | */ |
@@ -613,7 +613,7 @@ discard block |
||
| 613 | 613 | * |
| 614 | 614 | * Role Assignments with same roleId and limitationIdentifier will be merged together into one. |
| 615 | 615 | * |
| 616 | - * @param mixed $groupId In legacy storage engine this is the content object id roles are assigned to in ezuser_role. |
|
| 616 | + * @param integer $groupId In legacy storage engine this is the content object id roles are assigned to in ezuser_role. |
|
| 617 | 617 | * By the nature of legacy this can currently also be used to get by $userId. |
| 618 | 618 | * @param bool $inherit If true also return inherited role assignments from user groups. |
| 619 | 619 | * |