Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-01-11 17:09:58 +0300
committerOlivier Paroz <github@oparoz.com>2015-01-11 17:09:58 +0300
commit229cb7831b9ff9021828465693feae72099bf4c0 (patch)
treee0cce3be5fd403a4adc29926d1d90a2ecd0abe28 /http
parentf3c6b4895236b0b2ccf4e093fa73c58dc917e3c3 (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.php18
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');
}
/**