diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-01-28 22:32:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-28 22:32:49 +0100 |
commit | 9cd871983a368752d122a73da244606bdeba312f (patch) | |
tree | d1882e1e677d7cee12926e5688ccfbfd31a505f5 /lib/Http/TextResponse.php | |
parent | 31b2f194af74bdba60bdd2640e5fc47340157795 (diff) | |
parent | becce6b7520912257c3d72697a3aefec9923a467 (diff) |
Merge pull request #382 from SMillerDev/codestyle_psr2
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Http/TextResponse.php')
-rw-r--r-- | lib/Http/TextResponse.php | 4 |
1 files changed, 1 insertions, 3 deletions
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; } - - } |