@@ -30,7 +30,7 @@ |
||
| 30 | 30 | function register(): void |
| 31 | 31 | { |
| 32 | 32 | // Do nothing if running in cli. |
| 33 | - if(php_sapi_name() !== 'cli') |
|
| 33 | + if (php_sapi_name() !== 'cli') |
|
| 34 | 34 | { |
| 35 | 35 | _register(); |
| 36 | 36 | }; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | use Jaxon\App\Metadata\Metadata; |
| 19 | 19 | use Attribute; |
| 20 | 20 | |
| 21 | -#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
|
| 21 | +#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE)] |
|
| 22 | 22 | class Before extends AbstractAttribute |
| 23 | 23 | { |
| 24 | 24 | /** |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | use Jaxon\App\Metadata\Metadata; |
| 19 | 19 | use Attribute; |
| 20 | 20 | |
| 21 | -#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
|
| 21 | +#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE)] |
|
| 22 | 22 | class Callback extends AbstractAttribute |
| 23 | 23 | { |
| 24 | 24 | /** |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | use Jaxon\App\Metadata\Metadata; |
| 19 | 19 | use Attribute; |
| 20 | 20 | |
| 21 | -#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] |
|
| 21 | +#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD)] |
|
| 22 | 22 | class Exclude extends AbstractAttribute |
| 23 | 23 | { |
| 24 | 24 | /** |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | use Jaxon\App\Metadata\Metadata; |
| 19 | 19 | use Attribute; |
| 20 | 20 | |
| 21 | -#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] |
|
| 21 | +#[Attribute(Attribute::TARGET_CLASS|Attribute::TARGET_METHOD|Attribute::IS_REPEATABLE)] |
|
| 22 | 22 | class After extends AbstractAttribute |
| 23 | 23 | { |
| 24 | 24 | /** |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | */ |
| 96 | 96 | public function delete(string $sKey): void |
| 97 | 97 | { |
| 98 | - if(isset($_SESSION[$sKey])) |
|
| 98 | + if (isset($_SESSION[$sKey])) |
|
| 99 | 99 | { |
| 100 | 100 | unset($_SESSION[$sKey]); |
| 101 | 101 | } |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | public function param($param) |
| 69 | 69 | { |
| 70 | - if($this->method === 'param' && $this->args[0] === $param) |
|
| 70 | + if ($this->method === 'param' && $this->args[0] === $param) |
|
| 71 | 71 | { |
| 72 | 72 | $this->response->html('div-id', 'This is the method with params!'); |
| 73 | 73 | } |
@@ -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 | } |
@@ -6,20 +6,20 @@ |
||
| 6 | 6 | jaxon.config.defaultMethod = "<?php echo $this->sDefaultMethod ?>"; |
| 7 | 7 | jaxon.config.responseType = "<?php echo $this->sResponseType ?>"; |
| 8 | 8 | |
| 9 | -<?php if($this->nResponseQueueSize > 0): ?> |
|
| 9 | +<?php if ($this->nResponseQueueSize > 0): ?> |
|
| 10 | 10 | jaxon.config.responseQueueSize = <?php echo $this->nResponseQueueSize ?>; |
| 11 | 11 | <?php endif ?> |
| 12 | 12 | |
| 13 | -<?php if(($this->bDebug)): ?> |
|
| 13 | +<?php if (($this->bDebug)): ?> |
|
| 14 | 14 | jaxon.debug.active = true; |
| 15 | -<?php if(($this->sDebugOutputID)): ?> |
|
| 15 | +<?php if (($this->sDebugOutputID)): ?> |
|
| 16 | 16 | jaxon.debug.outputID = "<?php echo $this->sDebugOutputID ?>"; |
| 17 | 17 | <?php endif ?> |
| 18 | -<?php if(($this->bVerboseDebug)): ?> |
|
| 18 | +<?php if (($this->bVerboseDebug)): ?> |
|
| 19 | 19 | jaxon.debug.verbose.active = true; |
| 20 | 20 | <?php endif ?> |
| 21 | 21 | <?php endif ?> |
| 22 | 22 | |
| 23 | -<?php if(($this->sCsrfMetaName)): ?> |
|
| 23 | +<?php if (($this->sCsrfMetaName)): ?> |
|
| 24 | 24 | jaxon.setCsrf('<?php echo $this->sCsrfMetaName ?>'); |
| 25 | 25 | <?php endif ?> |