@@ -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 | * |
@@ -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( |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use eZ\Publish\Core\MVC\Symfony\RequestStackAware; |
16 | 16 | use eZ\Publish\Core\MVC\Symfony\Routing\RouteReference; |
17 | 17 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
18 | -use Symfony\Component\HttpFoundation\Request; |
|
19 | 18 | |
20 | 19 | class RouteReferenceGenerator implements RouteReferenceGeneratorInterface |
21 | 20 | { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param array $excludedUriPrefixes |
|
151 | + * @param string[] $excludedUriPrefixes |
|
152 | 152 | */ |
153 | 153 | public function setExcludedUriPrefixes(array $excludedUriPrefixes) |
154 | 154 | { |
@@ -226,7 +226,7 @@ |
||
226 | 226 | * Fragments are considered as sub-requests (i.e. ESI, Hinclude...). |
227 | 227 | * |
228 | 228 | * @param Request $request |
229 | - * @param $requestType |
|
229 | + * @param integer $requestType |
|
230 | 230 | * |
231 | 231 | * @return bool |
232 | 232 | */ |
@@ -71,7 +71,7 @@ |
||
71 | 71 | /** |
72 | 72 | * Returns matched SiteAccess. |
73 | 73 | * |
74 | - * @return string|bool |
|
74 | + * @return string|false |
|
75 | 75 | */ |
76 | 76 | protected function getMatchedSiteAccess() |
77 | 77 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Renders the HTML view markup for the given field definition. |
51 | 51 | * |
52 | - * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $definition |
|
52 | + * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition |
|
53 | 53 | * |
54 | 54 | * @return string |
55 | 55 | */ |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * Renders the HTML edot markup for the given field definition. |
60 | 60 | * |
61 | - * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $definition |
|
61 | + * @param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition |
|
62 | 62 | * |
63 | 63 | * @return string |
64 | 64 | */ |