diff options
| author | WubTheCaptain <wub@partyvan.eu> | 2015-09-18 05:32:38 +0200 |
|---|---|---|
| committer | pantsucat <contact@pantsu.cat> | 2015-09-19 08:19:21 +0200 |
| commit | 25a28ccda67bc39ab1a7b8eaa38fee09e17c154f (patch) | |
| tree | 8ce96117f2eaadc1b9dafd94208b6cd22a16970f /static/classes | |
| parent | 064faa9a4cdd7841c91cf3e86c73dded4f491b46 (diff) | |
Fix whitespace and restore PSR-2 style
Diffstat (limited to 'static/classes')
| -rwxr-xr-x | static/classes/Response.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index 951e39e..b7e4c5d 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -17,7 +17,7 @@ class Response $this->type = $response_type; break; - case 'html': + case 'html': header('Content-Type: text/html;charset=utf-8'); $this->type = 'html'; break; @@ -118,7 +118,7 @@ class Response $result .= $file['url']."\n"; } - return $result; + return $result; } private static function html_error($code, $description) @@ -129,10 +129,10 @@ class Response private static function html_success($files) { foreach ($files as $file) { - $result .= "<a href=\"".$file['url']."\">".$file['url']."</a><br>"; + $result .= '<a href="'.$file['url'].'">'.$file['url'].'</a><br>'; } - return $result; + return $result; } private static function json_error($code, $description) |
