@@ -57,8 +57,7 @@ |
||
57 | 57 | public function appendCommands(array $aCommands, bool $bBefore = false) |
58 | 58 | { |
59 | 59 | $this->aCommands = ($bBefore) ? |
60 | - array_merge($aCommands, $this->aCommands) : |
|
61 | - array_merge($this->aCommands, $aCommands); |
|
60 | + array_merge($aCommands, $this->aCommands) : array_merge($this->aCommands, $aCommands); |
|
62 | 61 | } |
63 | 62 | |
64 | 63 | /** |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @var array |
25 | 25 | */ |
26 | - protected $aConfig = [ |
|
26 | + protected $aConfig = [ |
|
27 | 27 | 'core' => [ |
28 | 28 | 'version' => Jaxon::VERSION, |
29 | 29 | 'language' => 'en', |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if(($this->sScript)): ?> |
|
1 | +<?php if (($this->sScript)): ?> |
|
2 | 2 | jaxon.dom.ready(function() { |
3 | 3 | <?php echo $this->sScript ?> |
4 | 4 | }); |
@@ -1,4 +1,4 @@ |
||
1 | -<?php if(($this->sScript)): ?> |
|
1 | +<?php if (($this->sScript)): ?> |
|
2 | 2 | <script type="text/javascript" <?php echo $this->sJsOptions ?> charset="UTF-8"> |
3 | 3 | /* <![CDATA[ */ |
4 | 4 | <?php echo $this->sScript ?> |
@@ -1,3 +1,3 @@ |
||
1 | -<?php foreach($this->aUrls as $sUrl): |
|
1 | +<?php foreach ($this->aUrls as $sUrl): |
|
2 | 2 | $this->include('jaxon::plugins/include.js', ['sUrl' => $sUrl, 'sJsOptions' => $this->sJsOptions]); |
3 | 3 | endforeach; |
@@ -14,18 +14,18 @@ |
||
14 | 14 | jaxon.config.defaultMode = "<?php echo $this->sDefaultMode ?>"; |
15 | 15 | jaxon.config.defaultMethod = "<?php echo $this->sDefaultMethod ?>"; |
16 | 16 | jaxon.config.responseType = "<?php echo $this->sResponseType ?>"; |
17 | -<?php if($this->nResponseQueueSize > 0): ?> |
|
17 | +<?php if ($this->nResponseQueueSize > 0): ?> |
|
18 | 18 | jaxon.config.responseQueueSize = <?php echo $this->nResponseQueueSize ?>; |
19 | 19 | <?php endif ?> |
20 | -<?php if(($this->bDebug)): ?> |
|
21 | -<?php if(($this->sDebugOutputID)): ?> |
|
20 | +<?php if (($this->bDebug)): ?> |
|
21 | +<?php if (($this->sDebugOutputID)): ?> |
|
22 | 22 | jaxon.debug.outputID = "<?php echo $this->sDebugOutputID ?>"; |
23 | 23 | <?php endif ?> |
24 | -<?php if(($this->bVerboseDebug)): ?> |
|
24 | +<?php if (($this->bVerboseDebug)): ?> |
|
25 | 25 | jaxon.debug.verbose.active = true; |
26 | 26 | <?php endif ?> |
27 | 27 | <?php endif ?> |
28 | -<?php if(($this->sCsrfMetaName)): ?> |
|
28 | +<?php if (($this->sCsrfMetaName)): ?> |
|
29 | 29 | metaTags = document.getElementsByTagName('meta'); |
30 | 30 | for(let i = 0; i < metaTags.length; i++) |
31 | 31 | { |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <ul class="pagination"><?php |
2 | - if(($this->prev)) |
|
2 | + if (($this->prev)) |
|
3 | 3 | { |
4 | 4 | echo $this->prev; |
5 | 5 | } |
6 | - foreach($this->links as $link) |
|
6 | + foreach ($this->links as $link) |
|
7 | 7 | { |
8 | 8 | echo $link; |
9 | 9 | } |
10 | - if(($this->next)) |
|
10 | + if (($this->next)) |
|
11 | 11 | { |
12 | 12 | echo $this->next; |
13 | 13 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php echo $this->sJsName ?> = function() { |
2 | 2 | return jaxon.request({ jxnfun: '<?php echo $this->sName ?>' }, { parameters: arguments<?php |
3 | - foreach($this->aOptions as $sKey => $sValue): ?>, <?php echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> }); |
|
3 | + foreach ($this->aOptions as $sKey => $sValue): ?>, <?php echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> }); |
|
4 | 4 | }; |
@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | // Jaxon library settings |
118 | 118 | $this->xConfigManager->setOption('js.app.export', $bExport); |
119 | 119 | $this->xConfigManager->setOption('js.app.minify', $bMinify); |
120 | - if($sUri !== '') |
|
120 | + if ($sUri !== '') |
|
121 | 121 | { |
122 | 122 | $this->xConfigManager->setOption('js.app.uri', $sUri); |
123 | 123 | } |
124 | - if($sDir !== '') |
|
124 | + if ($sDir !== '') |
|
125 | 125 | { |
126 | 126 | $this->xConfigManager->setOption('js.app.dir', $sDir); |
127 | 127 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | { |
174 | 174 | // Only call the callbacks that aren't called yet. |
175 | 175 | $aBootCallbacks = $this->xCallbackManager->popBootCallbacks(); |
176 | - foreach($aBootCallbacks as $aBootCallback) |
|
176 | + foreach ($aBootCallbacks as $aBootCallback) |
|
177 | 177 | { |
178 | 178 | call_user_func($aBootCallback); |
179 | 179 | } |