summaryrefslogtreecommitdiffstats
path: root/lib/Http
diff options
context:
space:
mode:
authorSean Molenaar <sean@m2mobi.com>2018-11-29 20:59:46 +0100
committerSean Molenaar <sean@m2mobi.com>2018-12-14 07:54:43 +0100
commitbecce6b7520912257c3d72697a3aefec9923a467 (patch)
treea2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Http
parent0f2645145ac31ad77788954c513f391bc4fbb295 (diff)
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Http')
-rw-r--r--lib/Http/TextDownloadResponse.php3
-rw-r--r--lib/Http/TextResponse.php4
2 files changed, 1 insertions, 6 deletions
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;
}
-
-
}