@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public static function getInstance() |
32 | 32 | { |
33 | - if(!self::$xInstance) |
|
33 | + if (!self::$xInstance) |
|
34 | 34 | { |
35 | 35 | self::$xInstance = new Container(); |
36 | 36 | } |
@@ -90,23 +90,23 @@ discard block |
||
90 | 90 | * Managers |
91 | 91 | */ |
92 | 92 | // Plugin Manager |
93 | - $this->coreContainer['jaxon.core.plugin_manager'] = function ($c) { |
|
93 | + $this->coreContainer['jaxon.core.plugin_manager'] = function($c) { |
|
94 | 94 | return new \Jaxon\Plugin\Manager(); |
95 | 95 | }; |
96 | 96 | // Request Manager |
97 | - $this->coreContainer['jaxon.core.request_manager'] = function ($c) { |
|
97 | + $this->coreContainer['jaxon.core.request_manager'] = function($c) { |
|
98 | 98 | return new \Jaxon\Request\Manager(); |
99 | 99 | }; |
100 | 100 | // Request Factory |
101 | - $this->coreContainer['jaxon.core.request_factory'] = function ($c) { |
|
101 | + $this->coreContainer['jaxon.core.request_factory'] = function($c) { |
|
102 | 102 | return new \Jaxon\Factory\Request(); |
103 | 103 | }; |
104 | 104 | // Parameter Factory |
105 | - $this->coreContainer['jaxon.core.parameter_factory'] = function ($c) { |
|
105 | + $this->coreContainer['jaxon.core.parameter_factory'] = function($c) { |
|
106 | 106 | return new \Jaxon\Factory\Parameter(); |
107 | 107 | }; |
108 | 108 | // Response Manager |
109 | - $this->coreContainer['jaxon.core.response_manager'] = function ($c) { |
|
109 | + $this->coreContainer['jaxon.core.response_manager'] = function($c) { |
|
110 | 110 | return new \Jaxon\Response\Manager(); |
111 | 111 | }; |
112 | 112 | |
@@ -114,35 +114,35 @@ discard block |
||
114 | 114 | * Services |
115 | 115 | */ |
116 | 116 | // Config manager |
117 | - $this->coreContainer['jaxon.core.config'] = function ($c) { |
|
117 | + $this->coreContainer['jaxon.core.config'] = function($c) { |
|
118 | 118 | return new \Jaxon\Utils\Config\Config(); |
119 | 119 | }; |
120 | 120 | // Minifier |
121 | - $this->coreContainer['jaxon.core.minifier'] = function ($c) { |
|
121 | + $this->coreContainer['jaxon.core.minifier'] = function($c) { |
|
122 | 122 | return new \Jaxon\Utils\Template\Minifier(); |
123 | 123 | }; |
124 | 124 | // Translator |
125 | - $this->coreContainer['jaxon.core.translator'] = function ($c) { |
|
125 | + $this->coreContainer['jaxon.core.translator'] = function($c) { |
|
126 | 126 | return new \Jaxon\Utils\Translation\Translator($c['jaxon.core.translation_dir'], $c['jaxon.core.config']); |
127 | 127 | }; |
128 | 128 | // Template engine |
129 | - $this->coreContainer['jaxon.core.template'] = function ($c) { |
|
129 | + $this->coreContainer['jaxon.core.template'] = function($c) { |
|
130 | 130 | return new \Jaxon\Utils\Template\Template($c['jaxon.core.template_dir']); |
131 | 131 | }; |
132 | 132 | // Validator |
133 | - $this->coreContainer['jaxon.core.validator'] = function ($c) { |
|
133 | + $this->coreContainer['jaxon.core.validator'] = function($c) { |
|
134 | 134 | return new \Jaxon\Utils\Validation\Validator($c['jaxon.core.translator'], $c['jaxon.core.config']); |
135 | 135 | }; |
136 | 136 | // Pagination Renderer |
137 | - $this->coreContainer['jaxon.pagination.renderer'] = function ($c) { |
|
137 | + $this->coreContainer['jaxon.pagination.renderer'] = function($c) { |
|
138 | 138 | return new \Jaxon\Utils\Pagination\Renderer(); |
139 | 139 | }; |
140 | 140 | // Pagination Paginator |
141 | - $this->coreContainer['jaxon.pagination.paginator'] = function ($c) { |
|
141 | + $this->coreContainer['jaxon.pagination.paginator'] = function($c) { |
|
142 | 142 | return new \Jaxon\Utils\Pagination\Paginator($c['jaxon.pagination.renderer']); |
143 | 143 | }; |
144 | 144 | // Event Dispatcher |
145 | - $this->coreContainer['jaxon.core.events'] = function ($c) { |
|
145 | + $this->coreContainer['jaxon.core.events'] = function($c) { |
|
146 | 146 | return new EventDispatcher(); |
147 | 147 | }; |
148 | 148 | |
@@ -150,15 +150,15 @@ discard block |
||
150 | 150 | * Core library objects |
151 | 151 | */ |
152 | 152 | // Global Response |
153 | - $this->coreContainer['jaxon.core.response'] = function ($c) { |
|
153 | + $this->coreContainer['jaxon.core.response'] = function($c) { |
|
154 | 154 | return new \Jaxon\Response\Response(); |
155 | 155 | }; |
156 | 156 | // Jaxon Core |
157 | - $this->coreContainer['jaxon.core.jaxon'] = function ($c) { |
|
157 | + $this->coreContainer['jaxon.core.jaxon'] = function($c) { |
|
158 | 158 | return new \Jaxon\Jaxon(); |
159 | 159 | }; |
160 | 160 | // View Renderer Facade |
161 | - $this->coreContainer['jaxon.sentry.view.renderer'] = function ($c) { |
|
161 | + $this->coreContainer['jaxon.sentry.view.renderer'] = function($c) { |
|
162 | 162 | $aRenderers = $c['jaxon.view.data.renderers']; |
163 | 163 | $sDefaultNamespace = $c['jaxon.view.data.namespace.default']; |
164 | 164 | return new \Jaxon\Sentry\View\Facade($aRenderers, $sDefaultNamespace); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | public function get($sClass) |
174 | 174 | { |
175 | - if($this->sentryContainer != null && $this->sentryContainer->has($sClass)) |
|
175 | + if ($this->sentryContainer != null && $this->sentryContainer->has($sClass)) |
|
176 | 176 | { |
177 | 177 | return $this->sentryContainer->get($sClass); |
178 | 178 | } |
@@ -457,14 +457,14 @@ discard block |
||
457 | 457 | $this->coreContainer['jaxon.sentry.view.base.' . $sId] = $xClosure; |
458 | 458 | |
459 | 459 | // Return the initialized view renderer |
460 | - $this->coreContainer['jaxon.sentry.view.' . $sId] = function ($c) use ($sId) { |
|
460 | + $this->coreContainer['jaxon.sentry.view.' . $sId] = function($c) use ($sId) { |
|
461 | 461 | // Get the defined renderer |
462 | 462 | $renderer = $c['jaxon.sentry.view.base.' . $sId]; |
463 | 463 | // Init the renderer with the template namespaces |
464 | 464 | $aNamespaces = $this->coreContainer['jaxon.view.data.namespaces']; |
465 | - if(key_exists($sId, $aNamespaces)) |
|
465 | + if (key_exists($sId, $aNamespaces)) |
|
466 | 466 | { |
467 | - foreach($aNamespaces[$sId] as $ns) |
|
467 | + foreach ($aNamespaces[$sId] as $ns) |
|
468 | 468 | { |
469 | 469 | $renderer->addNamespace($ns['namespace'], $ns['directory'], $ns['extension']); |
470 | 470 | } |
@@ -482,7 +482,7 @@ discard block |
||
482 | 482 | */ |
483 | 483 | public function getViewRenderer($sId = '') |
484 | 484 | { |
485 | - if(!$sId) |
|
485 | + if (!$sId) |
|
486 | 486 | { |
487 | 487 | // Return the view renderer facade |
488 | 488 | return $this->coreContainer['jaxon.sentry.view.renderer']; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 'core.prefix.class' => 'Jaxon', |
43 | 43 | // 'core.request.uri' => '', |
44 | 44 | 'core.request.mode' => 'asynchronous', |
45 | - 'core.request.method' => 'POST', // W3C: Method is case sensitive |
|
45 | + 'core.request.method' => 'POST', // W3C: Method is case sensitive |
|
46 | 46 | 'core.response.merge.ap' => true, |
47 | 47 | 'core.response.merge.js' => true, |
48 | 48 | 'core.debug.on' => false, |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | public function readConfigFile($sConfigFile, $sLibKey = '', $sAppKey = null) |
119 | 119 | { |
120 | 120 | $sExt = pathinfo($sConfigFile, PATHINFO_EXTENSION); |
121 | - switch($sExt) |
|
121 | + switch ($sExt) |
|
122 | 122 | { |
123 | 123 | case 'php': |
124 | 124 | return $this->readPhpConfigFile($sConfigFile, $sLibKey, $sAppKey); |