@@ -17,9 +17,8 @@ |
||
| 17 | 17 | use eZ\Publish\Core\Repository\Values\ContentType\ContentType; |
| 18 | 18 | use eZ\Publish\Core\REST\Common\Tests\Output\ValueObjectVisitorBaseTest; |
| 19 | 19 | use eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor; |
| 20 | -use eZ\Publish\Core\Repository\Values\Content; |
|
| 21 | -use eZ\Publish\Core\REST\Server\Values\RestExecutedView; |
|
| 22 | 20 | use eZ\Publish\Core\Repository\Values\Content as ApiValues; |
| 21 | +use eZ\Publish\Core\REST\Server\Values\RestExecutedView; |
|
| 23 | 22 | |
| 24 | 23 | class RestExecutedViewTest extends ValueObjectVisitorBaseTest |
| 25 | 24 | { |
@@ -283,6 +283,7 @@ |
||
| 283 | 283 | /** |
| 284 | 284 | * If in run-time debug mode, before SiteAccess is initialized, log getParameter() usages when considered "unsafe". |
| 285 | 285 | * |
| 286 | + * @param string $paramName |
|
| 286 | 287 | * @return string |
| 287 | 288 | */ |
| 288 | 289 | private function logTooEarlyLoadedListIfNeeded($paramName) |
@@ -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 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use eZ\Publish\Core\Persistence\Database\SelectQuery; |
| 18 | 18 | use eZ\Publish\SPI\Persistence\Content\Type\Handler as ContentTypeHandler; |
| 19 | 19 | use eZ\Publish\SPI\Persistence\Content\Language\Handler as LanguageHandler; |
| 20 | -use eZ\Publish\Core\Persistence\Database\Expression; |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * Field criterion handler. |
@@ -332,7 +332,7 @@ |
||
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | /** |
| 335 | - * @param mixed $locationId |
|
| 335 | + * @param integer $locationId |
|
| 336 | 336 | * @param bool $count |
| 337 | 337 | * |
| 338 | 338 | * @return \Doctrine\DBAL\Driver\Statement |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | */ |
| 7 | 7 | namespace eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor; |
| 8 | 8 | |
| 9 | -use eZ\Publish\API\Repository\Exceptions\NotFoundException; |
|
| 10 | 9 | use eZ\Publish\API\Repository\Exceptions\UnauthorizedException; |
| 11 | 10 | use eZ\Publish\API\Repository\Values\Content as ApiValues; |
| 12 | 11 | use eZ\Publish\Core\REST\Common\Exceptions; |