diff options
author | Olivier Paroz <github@oparoz.com> | 2015-01-11 17:09:58 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-01-11 17:09:58 +0300 |
commit | 229cb7831b9ff9021828465693feae72099bf4c0 (patch) | |
tree | e0cce3be5fd403a4adc29926d1d90a2ecd0abe28 /http | |
parent | f3c6b4895236b0b2ccf4e093fa73c58dc917e3c3 (diff) |
Relaxed the column width
The PSR2 coding guidelines say that 80 is a soft limit and that the hard limit is at 120, so I'm allowing some lines to be longer than 80 to improve readability
Some methods were also refactored slightly
Diffstat (limited to 'http')
-rw-r--r-- | http/imageresponse.php | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/http/imageresponse.php b/http/imageresponse.php index 5d2ca8e4..feb88506 100644 --- a/http/imageresponse.php +++ b/http/imageresponse.php @@ -42,23 +42,9 @@ class ImageResponse extends Response { $this->preview = $image['preview']; $this->setStatus($statusCode); - $this->addHeader( - 'Content-type', $image['mimetype'] . '; charset=utf-8' - ); + $this->addHeader('Content-type', $image['mimetype'] . '; charset=utf-8'); - \OCP\Response::setContentDispositionHeader( - basename($this->path), 'attachment' - ); - - /*\OC::$server - ->getLogger() - ->debug( - "[ImageResponse] Here is the content: " . substr( - (string)$this->previewData, 0, 20 - ), array( - 'app' => 'galleryplus' - ) - );*/ + \OCP\Response::setContentDispositionHeader(basename($this->path), 'attachment'); } /** |