@@ -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 |
@@ -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 |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * Create a Connection Handler with corresponding Doctrine connection from DSN. |
| 71 | 71 | * |
| 72 | - * @param string|array $dsn |
|
| 72 | + * @param string $dsn |
|
| 73 | 73 | * |
| 74 | 74 | * @return ConnectionHandler |
| 75 | 75 | */ |
@@ -460,8 +460,9 @@ discard block |
||
| 460 | 460 | * |
| 461 | 461 | * This is an optimization and works around the ezcDB implementation. |
| 462 | 462 | * |
| 463 | - * @param string $identifier |
|
| 464 | 463 | * |
| 464 | + * @param string $name |
|
| 465 | + * @param string $alias |
|
| 465 | 466 | * @return string |
| 466 | 467 | */ |
| 467 | 468 | public function alias($name, $alias) |
@@ -496,7 +497,7 @@ discard block |
||
| 496 | 497 | * @param string $table |
| 497 | 498 | * @param string $column |
| 498 | 499 | * |
| 499 | - * @return mixed |
|
| 500 | + * @return string |
|
| 500 | 501 | */ |
| 501 | 502 | public function getAutoIncrementValue($table, $column) |
| 502 | 503 | { |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | /** |
| 128 | 128 | * This method returns the content type field definitions from this type. |
| 129 | 129 | * |
| 130 | - * @return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] |
|
| 130 | + * @return APIFieldDefinitionCollection |
|
| 131 | 131 | */ |
| 132 | 132 | public function getFieldDefinitions(): APIFieldDefinitionCollection |
| 133 | 133 | { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * |
| 91 | 91 | * Note that $id is identical to original location, which has been previously trashed |
| 92 | 92 | * |
| 93 | - * @param mixed $trashItemId |
|
| 93 | + * @param integer $trashItemId |
|
| 94 | 94 | * |
| 95 | 95 | * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed to read the trashed location |
| 96 | 96 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException - if the location with the given id does not exist |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | * @param bool $showAllTranslations |
| 322 | 322 | * @param string[] $prioritizedLanguageList |
| 323 | 323 | * |
| 324 | - * @return string|bool |
|
| 324 | + * @return false|string |
|
| 325 | 325 | */ |
| 326 | 326 | protected function extractPath( |
| 327 | 327 | SPIURLAlias $spiUrlAlias, |
@@ -674,7 +674,7 @@ discard block |
||
| 674 | 674 | * @param \eZ\Publish\API\Repository\Values\Content\Location $location |
| 675 | 675 | * @param string|null $languageCode |
| 676 | 676 | * @param bool|null $showAllTranslations |
| 677 | - * @param string[]|null $prioritizedLanguageList |
|
| 677 | + * @param string[] $prioritizedLanguageList |
|
| 678 | 678 | * |
| 679 | 679 | * @return \eZ\Publish\API\Repository\Values\Content\URLAlias |
| 680 | 680 | */ |
@@ -260,6 +260,9 @@ |
||
| 260 | 260 | } |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | + /** |
|
| 264 | + * @param integer $timestamp |
|
| 265 | + */ |
|
| 263 | 266 | private function createDateTime(?int $timestamp): ?DateTimeInterface |
| 264 | 267 | { |
| 265 | 268 | if ($timestamp > 0) { |
@@ -41,7 +41,6 @@ discard block |
||
| 41 | 41 | * @param array $headers An array of response headers |
| 42 | 42 | * @param bool $public Files are public by default |
| 43 | 43 | * @param string|null $contentDisposition The type of Content-Disposition to set automatically with the filename |
| 44 | - * @param bool $autoEtag Whether the ETag header should be automatically set |
|
| 45 | 44 | * @param bool $autoLastModified Whether the Last-Modified header should be automatically set |
| 46 | 45 | */ |
| 47 | 46 | public function __construct(BinaryFile $binaryFile, IOServiceInterface $ioService, $status = 200, $headers = [], $public = true, $contentDisposition = null, $autoLastModified = true) |
@@ -60,12 +59,11 @@ discard block |
||
| 60 | 59 | /** |
| 61 | 60 | * Sets the file to stream. |
| 62 | 61 | * |
| 63 | - * @param \SplFileInfo|string $file The file to stream |
|
| 62 | + * @param BinaryFile $file The file to stream |
|
| 64 | 63 | * @param string $contentDisposition |
| 65 | - * @param bool $autoEtag |
|
| 66 | 64 | * @param bool $autoLastModified |
| 67 | 65 | * |
| 68 | - * @return BinaryFileResponse |
|
| 66 | + * @return BinaryStreamResponse |
|
| 69 | 67 | */ |
| 70 | 68 | public function setFile($file, $contentDisposition = null, $autoLastModified = true) |
| 71 | 69 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | /** |
| 99 | 99 | * Get initial field data for valid object creation. |
| 100 | 100 | * |
| 101 | - * @return mixed |
|
| 101 | + * @return KeywordValue |
|
| 102 | 102 | */ |
| 103 | 103 | public function getValidCreationFieldData() |
| 104 | 104 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | /** |
| 194 | 194 | * Get update field externals data. |
| 195 | 195 | * |
| 196 | - * @return array |
|
| 196 | + * @return KeywordValue |
|
| 197 | 197 | */ |
| 198 | 198 | public function getValidUpdateFieldData() |
| 199 | 199 | { |
@@ -373,6 +373,8 @@ discard block |
||
| 373 | 373 | |
| 374 | 374 | /** |
| 375 | 375 | * {@inheritdoc} |
| 376 | + * @param KeywordValue $fieldData |
|
| 377 | + * @param ContentType $contentType |
|
| 376 | 378 | */ |
| 377 | 379 | protected function createContent($fieldData, $contentType = null) |
| 378 | 380 | { |
@@ -430,7 +432,7 @@ discard block |
||
| 430 | 432 | /** |
| 431 | 433 | * Create and publish content of $contentType with $fieldData. |
| 432 | 434 | * |
| 433 | - * @param mixed $fieldData |
|
| 435 | + * @param string $fieldData |
|
| 434 | 436 | * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType |
| 435 | 437 | * @param string $remoteId |
| 436 | 438 | * |