diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Http/TextResponse.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
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; } - - } |