@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public static function getInstance() |
| 84 | 84 | { |
| 85 | - if(self::$xInstance == null) |
|
| 85 | + if (self::$xInstance == null) |
|
| 86 | 86 | { |
| 87 | 87 | self::$xInstance = new Jaxon(); |
| 88 | 88 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function __construct() |
| 96 | 96 | { |
| 97 | - if(self::$xContainer == null) |
|
| 97 | + if (self::$xContainer == null) |
|
| 98 | 98 | { |
| 99 | 99 | self::$xContainer = new Container(); |
| 100 | 100 | $this->setDefaultOptions(); |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | 'core.prefix.class' => 'Jaxon', |
| 155 | 155 | // 'core.request.uri' => '', |
| 156 | 156 | 'core.request.mode' => 'asynchronous', |
| 157 | - 'core.request.method' => 'POST', // W3C: Method is case sensitive |
|
| 157 | + 'core.request.method' => 'POST', // W3C: Method is case sensitive |
|
| 158 | 158 | 'core.response.send' => true, |
| 159 | 159 | 'core.response.merge.ap' => true, |
| 160 | 160 | 'core.response.merge.js' => true, |
@@ -240,11 +240,11 @@ discard block |
||
| 240 | 240 | */ |
| 241 | 241 | public function register($sType, $sCallable, $xOptions = []) |
| 242 | 242 | { |
| 243 | - if($sType == Jaxon::PROCESSING_EVENT) |
|
| 243 | + if ($sType == Jaxon::PROCESSING_EVENT) |
|
| 244 | 244 | { |
| 245 | 245 | $sEvent = $sCallable; |
| 246 | 246 | $xCallback = $xOptions; |
| 247 | - switch($sEvent) |
|
| 247 | + switch ($sEvent) |
|
| 248 | 248 | { |
| 249 | 249 | case Jaxon::PROCESSING_EVENT_BEFORE: |
| 250 | 250 | $this->callback()->before($xCallback); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function sendHeaders() |
| 33 | 33 | { |
| 34 | - if($this->getRequesthandler()->requestMethodIsGet()) |
|
| 34 | + if ($this->getRequesthandler()->requestMethodIsGet()) |
|
| 35 | 35 | { |
| 36 | 36 | header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
| 37 | 37 | header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $sCharacterSet = ''; |
| 43 | 43 | $sCharacterEncoding = $this->getCharacterEncoding(); |
| 44 | - if(is_string($sCharacterEncoding) && strlen($sCharacterEncoding) > 0) |
|
| 44 | + if (is_string($sCharacterEncoding) && strlen($sCharacterEncoding) > 0) |
|
| 45 | 45 | { |
| 46 | 46 | $sCharacterSet = '; charset="' . $sCharacterEncoding . '"'; |
| 47 | 47 | } |
@@ -72,11 +72,10 @@ |
||
| 72 | 72 | public function getOutput() |
| 73 | 73 | { |
| 74 | 74 | $aResponse = ($this->sUploadedFile) ? |
| 75 | - ['code' => 'success', 'upl' => $this->sUploadedFile] : |
|
| 76 | - ['code' => 'error', 'msg' => $this->sErrorMessage]; |
|
| 75 | + ['code' => 'success', 'upl' => $this->sUploadedFile] : ['code' => 'error', 'msg' => $this->sErrorMessage]; |
|
| 77 | 76 | |
| 78 | 77 | $sConsoleLog = ''; |
| 79 | - array_walk($this->aDebugMessages, function ($sMessage) use (&$sConsoleLog) { |
|
| 78 | + array_walk($this->aDebugMessages, function($sMessage) use (&$sConsoleLog) { |
|
| 80 | 79 | $sConsoleLog .= ' |
| 81 | 80 | console.log("' . addslashes($sMessage) . '");'; |
| 82 | 81 | }); |