diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-05-05 15:29:43 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-05-08 11:20:49 +0200 |
commit | 92408390b02edcab91094c4477013d31c5677e44 (patch) | |
tree | 61eb1fc97011a4220ee93194ae734b36ba01223f /apps/dav/lib | |
parent | 747990b03a84c29d8810875339bd2a9548e09294 (diff) | |
download | nextcloud-server-92408390b02edcab91094c4477013d31c5677e44.tar.gz nextcloud-server-92408390b02edcab91094c4477013d31c5677e44.zip |
Fix ImageExportPluginTest
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CardDAV/ImageExportPlugin.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/dav/lib/CardDAV/ImageExportPlugin.php b/apps/dav/lib/CardDAV/ImageExportPlugin.php index 5b08319735c..747c879ecd4 100644 --- a/apps/dav/lib/CardDAV/ImageExportPlugin.php +++ b/apps/dav/lib/CardDAV/ImageExportPlugin.php @@ -34,19 +34,15 @@ class ImageExportPlugin extends ServerPlugin { /** @var Server */ protected $server; - /** @var ILogger */ - private $logger; /** @var PhotoCache */ private $cache; /** * ImageExportPlugin constructor. * - * @param ILogger $logger * @param PhotoCache $cache */ - public function __construct(ILogger $logger, PhotoCache $cache) { - $this->logger = $logger; + public function __construct(PhotoCache $cache) { $this->cache = $cache; } @@ -76,10 +72,7 @@ class ImageExportPlugin extends ServerPlugin { return true; } - $size = -1; - if (isset($queryParams['size'])) { - $size = (int)$queryParams['size']; - } + $size = isset($queryParams['size']) ? (int)$queryParams['size'] : -1; $path = $request->getPath(); $node = $this->server->tree->getNodeForPath($path); |