@@ -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 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | 'core.prefix.class' => 'Jaxon', |
149 | 149 | // 'core.request.uri' => '', |
150 | 150 | 'core.request.mode' => 'asynchronous', |
151 | - 'core.request.method' => 'POST', // W3C: Method is case sensitive |
|
151 | + 'core.request.method' => 'POST', // W3C: Method is case sensitive |
|
152 | 152 | 'core.response.send' => true, |
153 | 153 | 'core.response.merge.ap' => true, |
154 | 154 | 'core.response.merge.js' => true, |
@@ -234,11 +234,11 @@ discard block |
||
234 | 234 | */ |
235 | 235 | public function register($sType, $sCallable, $xOptions = []) |
236 | 236 | { |
237 | - if($sType == Jaxon::PROCESSING_EVENT) |
|
237 | + if ($sType == Jaxon::PROCESSING_EVENT) |
|
238 | 238 | { |
239 | 239 | $sEvent = $sCallable; |
240 | 240 | $xCallback = $xOptions; |
241 | - switch($sEvent) |
|
241 | + switch ($sEvent) |
|
242 | 242 | { |
243 | 243 | case Jaxon::PROCESSING_EVENT_BEFORE: |
244 | 244 | $this->callback()->before($xCallback); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | $this->sDirectory = ''; |
62 | 62 | $this->sExtension = ''; |
63 | - if(key_exists($sNamespace, $this->aDirectories)) |
|
63 | + if (key_exists($sNamespace, $this->aDirectories)) |
|
64 | 64 | { |
65 | 65 | // Make sure there's only one '/' at the end of the string |
66 | 66 | $this->sDirectory = rtrim($this->aDirectories[$sNamespace]['path'], '/') . '/'; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | public function addNamespace($sNamespace, $sDirectory, $sExtension = '') |
56 | 56 | { |
57 | 57 | // The 'jaxon' key cannot be overriden |
58 | - if($sNamespace == 'jaxon') |
|
58 | + if ($sNamespace == 'jaxon') |
|
59 | 59 | { |
60 | 60 | return; |
61 | 61 | } |
@@ -92,18 +92,18 @@ discard block |
||
92 | 92 | // Get the namespace name |
93 | 93 | $sNamespace = ''; |
94 | 94 | $iSeparatorPosition = strrpos($sTemplate, '::'); |
95 | - if($iSeparatorPosition !== false) |
|
95 | + if ($iSeparatorPosition !== false) |
|
96 | 96 | { |
97 | 97 | $sNamespace = substr($sTemplate, 0, $iSeparatorPosition); |
98 | 98 | $sTemplate = substr($sTemplate, $iSeparatorPosition + 2); |
99 | 99 | } |
100 | 100 | // The default namespace is 'jaxon' |
101 | - if(!($sNamespace = trim($sNamespace))) |
|
101 | + if (!($sNamespace = trim($sNamespace))) |
|
102 | 102 | { |
103 | 103 | $sNamespace = 'jaxon'; |
104 | 104 | } |
105 | 105 | // Check if the namespace is defined |
106 | - if(!key_exists($sNamespace, $this->aNamespaces)) |
|
106 | + if (!key_exists($sNamespace, $this->aNamespaces)) |
|
107 | 107 | { |
108 | 108 | return ''; |
109 | 109 | } |