@@ -32,15 +32,16 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If $path is not found |
| 34 | 34 | * |
| 35 | - * @param string $path |
|
| 35 | + * @param string $spiBinaryFileId |
|
| 36 | + * @return void |
|
| 36 | 37 | */ |
| 37 | 38 | public function delete($spiBinaryFileId); |
| 38 | 39 | |
| 39 | 40 | /** |
| 40 | 41 | * Loads and returns metadata for $path. |
| 41 | 42 | * |
| 42 | - * @param string $path |
|
| 43 | 43 | * |
| 44 | + * @param string $spiBinaryFileId |
|
| 44 | 45 | * @return BinaryFile |
| 45 | 46 | */ |
| 46 | 47 | public function load($spiBinaryFileId); |
@@ -48,8 +49,8 @@ discard block |
||
| 48 | 49 | /** |
| 49 | 50 | * Checks if a file $path exists. |
| 50 | 51 | * |
| 51 | - * @param string $path |
|
| 52 | 52 | * |
| 53 | + * @param string $spiBinaryFileId |
|
| 53 | 54 | * @return bool |
| 54 | 55 | */ |
| 55 | 56 | public function exists($spiBinaryFileId); |
@@ -57,11 +58,16 @@ discard block |
||
| 57 | 58 | /** |
| 58 | 59 | * Returns the file's mimetype. Example: text/plain. |
| 59 | 60 | * |
| 60 | - * @param $spiBinaryFileId |
|
| 61 | + * @param string $spiBinaryFileId |
|
| 61 | 62 | * |
| 62 | 63 | * @return string |
| 63 | 64 | */ |
| 64 | 65 | public function getMimeType($spiBinaryFileId); |
| 65 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $spiPath |
|
| 69 | + * |
|
| 70 | + * @return void |
|
| 71 | + */ |
|
| 66 | 72 | public function deleteDirectory($spiPath); |
| 67 | 73 | } |
@@ -278,7 +278,7 @@ |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | /** |
| 281 | - * @param mixed $spiBinaryFileId |
|
| 281 | + * @param string $spiBinaryFileId |
|
| 282 | 282 | * |
| 283 | 283 | * @return string |
| 284 | 284 | * |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * @covers \eZ\Publish\Core\IO\IOService::loadBinaryFile |
| 219 | 219 | * @expectedException \eZ\Publish\Core\Base\Exceptions\NotFoundException |
| 220 | 220 | * |
| 221 | - * @return mixed Whatever loadBinaryFile returns |
|
| 221 | + * @return BinaryFile Whatever loadBinaryFile returns |
|
| 222 | 222 | */ |
| 223 | 223 | public function testLoadBinaryFileNotFound() |
| 224 | 224 | { |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | /** |
| 265 | - * @return mixed Whatever loadBinaryFileByUri returns |
|
| 265 | + * @return BinaryFile Whatever loadBinaryFileByUri returns |
|
| 266 | 266 | * @expectedException \eZ\Publish\Core\Base\Exceptions\NotFoundException |
| 267 | 267 | */ |
| 268 | 268 | public function testLoadBinaryFileByUriNotFound() |
@@ -450,8 +450,9 @@ discard block |
||
| 450 | 450 | * Asserts that the given $ioCreateStruct is of the right type and that id matches the expected value. |
| 451 | 451 | * |
| 452 | 452 | * @param $ioCreateStruct |
| 453 | + * @param string $spiId |
|
| 453 | 454 | * |
| 454 | - * @return bool |
|
| 455 | + * @return \Closure |
|
| 455 | 456 | */ |
| 456 | 457 | private function getSPIBinaryFileCreateStructCallback($spiId) |
| 457 | 458 | { |
@@ -76,6 +76,10 @@ |
||
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | 78 | * @throws NotImplementedException If Content is missing location as this is not supported in current version |
| 79 | + * @param integer $contentId |
|
| 80 | + * @param integer $versionNo |
|
| 81 | + * @param string $language |
|
| 82 | + * @param string $siteAccessName |
|
| 79 | 83 | */ |
| 80 | 84 | public function previewContentAction(Request $request, $contentId, $versionNo, $language, $siteAccessName = null) |
| 81 | 85 | { |
@@ -374,6 +374,11 @@ |
||
| 374 | 374 | } |
| 375 | 375 | } |
| 376 | 376 | |
| 377 | + /** |
|
| 378 | + * @param string $viewType |
|
| 379 | + * @param integer $contentId |
|
| 380 | + * @param integer $locationId |
|
| 381 | + */ |
|
| 377 | 382 | protected function handleViewException(Response $response, $params, Exception $e, $viewType, $contentId = null, $locationId = null) |
| 378 | 383 | { |
| 379 | 384 | $event = new APIContentExceptionEvent( |
@@ -304,9 +304,9 @@ |
||
| 304 | 304 | /** |
| 305 | 305 | * Returns configured template reference for the given embed parameters. |
| 306 | 306 | * |
| 307 | - * @param $resourceType |
|
| 308 | - * @param $isInline |
|
| 309 | - * @param $isDenied |
|
| 307 | + * @param integer $resourceType |
|
| 308 | + * @param boolean $isInline |
|
| 309 | + * @param boolean $isDenied |
|
| 310 | 310 | * |
| 311 | 311 | * @return null|string |
| 312 | 312 | */ |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | const MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\Matcher\\Block'; |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $matcherIdentifier |
|
| 28 | + */ |
|
| 26 | 29 | protected function getMatcher($matcherIdentifier) |
| 27 | 30 | { |
| 28 | 31 | @trigger_error( |
@@ -45,7 +48,6 @@ discard block |
||
| 45 | 48 | * Checks if $valueObject matches $matcher rules. |
| 46 | 49 | * |
| 47 | 50 | * @param \eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher |
| 48 | - * @param ValueObject $valueObject |
|
| 49 | 51 | * |
| 50 | 52 | * @throws InvalidArgumentException |
| 51 | 53 | * |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | /** |
| 149 | 149 | * @param array $matchConfig |
| 150 | 150 | * |
| 151 | - * @return AbstractMatcherFactory |
|
| 151 | + * @return ClassNameMatcherFactory |
|
| 152 | 152 | */ |
| 153 | 153 | public function setMatchConfig($matchConfig) |
| 154 | 154 | { |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | { |
| 21 | 21 | const MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\Matcher\\ContentBased'; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $matcherIdentifier |
|
| 25 | + */ |
|
| 23 | 26 | protected function getMatcher($matcherIdentifier) |
| 24 | 27 | { |
| 25 | 28 | @trigger_error( |