@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function before($xCallable = null) |
60 | 60 | { |
61 | - if($xCallable === null) |
|
61 | + if ($xCallable === null) |
|
62 | 62 | { |
63 | 63 | return $this->xBeforeCallback; |
64 | 64 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function after($xCallable = null) |
76 | 76 | { |
77 | - if($xCallable === null) |
|
77 | + if ($xCallable === null) |
|
78 | 78 | { |
79 | 79 | return $this->xAfterCallback; |
80 | 80 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function invalid($xCallable = null) |
92 | 92 | { |
93 | - if($xCallable === null) |
|
93 | + if ($xCallable === null) |
|
94 | 94 | { |
95 | 95 | return $this->xInvalidCallback; |
96 | 96 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function error($xCallable = null) |
108 | 108 | { |
109 | - if($xCallable === null) |
|
109 | + if ($xCallable === null) |
|
110 | 110 | { |
111 | 111 | return $this->xErrorCallback; |
112 | 112 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function init($xCallable = null) |
124 | 124 | { |
125 | - if($xCallable === null) |
|
125 | + if ($xCallable === null) |
|
126 | 126 | { |
127 | 127 | return $this->xInitCallback; |
128 | 128 | } |
@@ -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); |