Passed
Push — main ( ad9d65...b0d77b )
by Thierry
04:01
created
jaxon-core/src/App/NodeComponent.php 1 patch
Switch Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -8,76 +8,76 @@
 block discarded – undo
8 8
 
9 9
 abstract class NodeComponent extends Component\AbstractComponent
10 10
 {
11
-    use Component\HelperTrait;
12
-    use Component\NodeResponseTrait;
13
-    use Component\AjaxResponseTrait;
14
-    use Component\ComponentTrait;
11
+use Component\HelperTrait;
12
+use Component\NodeResponseTrait;
13
+use Component\AjaxResponseTrait;
14
+use Component\ComponentTrait;
15 15
 
16
-    /**
16
+/**
17 17
      * @inheritDoc
18 18
      */
19
-    final protected function initComponent(Container $di, ComponentHelper $xHelper): void
20
-    {
21
-        $this->setHelper($xHelper);
22
-        $this->setNodeResponse($di);
23
-        $this->setAjaxResponse($di);
24
-        // Allow the user app to setup the component.
25
-        $this->setupComponent();
26
-    }
19
+final protected function initComponent(Container $di, ComponentHelper $xHelper): void
20
+{
21
+$this->setHelper($xHelper);
22
+$this->setNodeResponse($di);
23
+$this->setAjaxResponse($di);
24
+// Allow the user app to setup the component.
25
+$this->setupComponent();
26
+}
27 27
 
28
-    /**
28
+/**
29 29
      * @return string|Stringable
30 30
      */
31
-    public function html(): string|Stringable
32
-    {
33
-        return '';
34
-    }
31
+public function html(): string|Stringable
32
+{
33
+return '';
34
+}
35 35
 
36
-    /**
36
+/**
37 37
      * Called before rendering the component.
38 38
      *
39 39
      * @return void
40 40
      */
41
-    protected function before(): void
42
-    {}
41
+protected function before(): void
42
+{}
43 43
 
44
-    /**
44
+/**
45 45
      * Called after rendering the component.
46 46
      *
47 47
      * @return void
48 48
      */
49
-    protected function after(): void
50
-    {}
49
+protected function after(): void
50
+{}
51 51
 
52
-    /**
52
+/**
53 53
      * Set the attached DOM node content with the component HTML code.
54 54
      *
55 55
      * @return void
56 56
      */
57
-    final public function render(): void
58
-    {
59
-        $this->before();
60
-        $this->node()->html((string)$this->html());
61
-        $this->after();
62
-    }
57
+final public function render(): void
58
+{
59
+$this->before();
60
+$this->node()->html((string)$this->html());
61
+$this->after();
62
+}
63 63
 
64
-    /**
64
+/**
65 65
      * Clear the attached DOM node content.
66 66
      *
67 67
      * @return void
68 68
      */
69
-    final public function clear(): void
70
-    {
71
-        $this->node()->clear();
72
-    }
69
+final public function clear(): void
70
+{
71
+$this->node()->clear();
72
+}
73 73
 
74
-    /**
74
+/**
75 75
      * Show/hide the attached DOM node.
76 76
      *
77 77
      * @return void
78 78
      */
79
-    final public function visible(bool $bVisible): void
80
-    {
81
-        $bVisible ? $this->node()->jq()->show() : $this->node()->jq()->hide();
82
-    }
79
+final public function visible(bool $bVisible): void
80
+{
81
+$bVisible ? $this->node()->jq()->show() : $this->node()->jq()->hide();
82
+}
83 83
 }
Please login to merge, or discard this patch.
jaxon-core/src/App/FuncComponent.php 1 patch
Switch Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -8,22 +8,22 @@  discard block
 block discarded – undo
8 8
 
9 9
 abstract class FuncComponent extends Component\AbstractComponent
10 10
 {
11
-    use Component\HelperTrait;
12
-    use Component\AjaxResponseTrait;
13
-    use Component\ComponentTrait;
11
+use Component\HelperTrait;
12
+use Component\AjaxResponseTrait;
13
+use Component\ComponentTrait;
14 14
 
15
-    /**
15
+/**
16 16
      * @inheritDoc
17 17
      */
18
-    final protected function initComponent(Container $di, ComponentHelper $xHelper): void
19
-    {
20
-        $this->setHelper($xHelper);
21
-        $this->setAjaxResponse($di);
22
-        // Allow the user app to setup the component.
23
-        $this->setupComponent();
24
-    }
18
+final protected function initComponent(Container $di, ComponentHelper $xHelper): void
19
+{
20
+$this->setHelper($xHelper);
21
+$this->setAjaxResponse($di);
22
+// Allow the user app to setup the component.
23
+$this->setupComponent();
24
+}
25 25
 
26
-    /**
26
+/**
27 27
      * Create a paginator.
28 28
      *
29 29
      * @param int $nPageNumber     The current page number
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return Paginator
34 34
      */
35
-    final public function paginator(int $nPageNumber, int $nItemsPerPage, int $nTotalItems): Paginator
36
-    {
37
-        return $this->response->paginator($nPageNumber, $nItemsPerPage, $nTotalItems);
38
-    }
35
+final public function paginator(int $nPageNumber, int $nItemsPerPage, int $nTotalItems): Paginator
36
+{
37
+return $this->response->paginator($nPageNumber, $nItemsPerPage, $nTotalItems);
38
+}
39 39
 }
Please login to merge, or discard this patch.
jaxon-core/src/App/Component/Pagination.php 1 patch
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -8,19 +8,19 @@  discard block
 block discarded – undo
8 8
 
9 9
 class Pagination extends AbstractComponent
10 10
 {
11
-    use HelperTrait;
12
-    use NodeResponseTrait;
11
+use HelperTrait;
12
+use NodeResponseTrait;
13 13
 
14
-    /**
14
+/**
15 15
      * @inheritDoc
16 16
      */
17
-    final protected function initComponent(Container $di, ComponentHelper $xHelper): void
18
-    {
19
-        $this->setHelper($xHelper);
20
-        $this->setNodeResponse($di);
21
-    }
17
+final protected function initComponent(Container $di, ComponentHelper $xHelper): void
18
+{
19
+$this->setHelper($xHelper);
20
+$this->setNodeResponse($di);
21
+}
22 22
 
23
-    /**
23
+/**
24 24
      * Create a paginator.
25 25
      *
26 26
      * @param int $nPageNumber      The current page number
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return Paginator
31 31
      */
32
-    final public function paginator(int $nPageNumber, int $nItemsPerPage, int $nTotalItems): Paginator
33
-    {
34
-        return $this->nodeResponse->paginator($nPageNumber, $nItemsPerPage, $nTotalItems);
35
-    }
32
+final public function paginator(int $nPageNumber, int $nItemsPerPage, int $nTotalItems): Paginator
33
+{
34
+return $this->nodeResponse->paginator($nPageNumber, $nItemsPerPage, $nTotalItems);
35
+}
36 36
 }
Please login to merge, or discard this patch.
jaxon-core/src/App/Component/AbstractComponent.php 1 patch
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@  discard block
 block discarded – undo
8 8
 
9 9
 abstract class AbstractComponent
10 10
 {
11
-    /**
11
+/**
12 12
      * Get the component helper
13 13
      *
14 14
      * @return ComponentHelper
15 15
      */
16
-    abstract protected function helper(): ComponentHelper;
16
+abstract protected function helper(): ComponentHelper;
17 17
 
18
-    /**
18
+/**
19 19
      * Initialize the component
20 20
      *
21 21
      * @param Container $di
@@ -23,25 +23,25 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @return void
25 25
      */
26
-    abstract protected function initComponent(Container $di, ComponentHelper $xHelper);
26
+abstract protected function initComponent(Container $di, ComponentHelper $xHelper);
27 27
 
28
-    /**
28
+/**
29 29
      * Initialize the component
30 30
      *
31 31
      * @return void
32 32
      */
33
-    protected function setupComponent(): void
34
-    {}
33
+protected function setupComponent(): void
34
+{}
35 35
 
36
-    /**
36
+/**
37 37
      * Get the js call factory.
38 38
      *
39 39
      * @param string $sClassName
40 40
      *
41 41
      * @return JxnCall
42 42
      */
43
-    protected function rq(string $sClassName = ''): JxnCall
44
-    {
45
-        return $this->helper()->rq($sClassName);
46
-    }
43
+protected function rq(string $sClassName = ''): JxnCall
44
+{
45
+return $this->helper()->rq($sClassName);
46
+}
47 47
 }
Please login to merge, or discard this patch.