From becce6b7520912257c3d72697a3aefec9923a467 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Thu, 29 Nov 2018 20:59:46 +0100 Subject: Define an official codestyle and adhere to it. --- lib/Http/TextDownloadResponse.php | 3 --- lib/Http/TextResponse.php | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/Http') diff --git a/lib/Http/TextDownloadResponse.php b/lib/Http/TextDownloadResponse.php index 23eec82b6..6a0f72e0c 100644 --- a/lib/Http/TextDownloadResponse.php +++ b/lib/Http/TextDownloadResponse.php @@ -15,7 +15,6 @@ namespace OCA\News\Http; use \OCP\AppFramework\Http\DownloadResponse; - /** * Prompts the user to download the a text file */ @@ -49,6 +48,4 @@ class TextDownloadResponse extends DownloadResponse { return $this->content; } - - } diff --git a/lib/Http/TextResponse.php b/lib/Http/TextResponse.php index af5c84edb..fd97feae2 100644 --- a/lib/Http/TextResponse.php +++ b/lib/Http/TextResponse.php @@ -30,7 +30,7 @@ class TextResponse extends Response * @param string $contentType the mimetype. text/ is added automatically so * only plain or html can be added to get text/plain or text/html */ - public function __construct($content, $contentType='plain') + public function __construct($content, $contentType = 'plain') { $this->content = $content; $this->addHeader('Content-type', 'text/' . $contentType); @@ -46,6 +46,4 @@ class TextResponse extends Response { return $this->content; } - - } -- cgit v1.2.3