Passed
Push — main ( c6b105...31af8b )
by Thierry
07:02
created
jaxon-flot/src/Data/Series.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
     public function point($iXaxis, $xValue, $sLabel = ''): static
62 62
     {
63 63
         $this->aPoints[] = $iXaxis;
64
-        if(!$this->aValues['data'])
64
+        if (!$this->aValues['data'])
65 65
         {
66 66
             $this->aValues['data'] = [];
67 67
         }
68 68
         $this->aValues['data'][$iXaxis] = $xValue;
69
-        if(($sLabel))
69
+        if (($sLabel))
70 70
         {
71
-            if(!$this->aLabels['data'])
71
+            if (!$this->aLabels['data'])
72 72
             {
73 73
                 $this->aLabels['data'] = [];
74 74
             }
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function points($aPoints): int
88 88
     {
89
-        foreach($aPoints as $aPoint)
89
+        foreach ($aPoints as $aPoint)
90 90
         {
91
-            if(count($aPoint) === 2)
91
+            if (count($aPoint) === 2)
92 92
             {
93 93
                 $this->point($aPoint[0], $aPoint[1]);
94 94
             }
95
-            else if(count($aPoint) === 3)
95
+            else if (count($aPoint) === 3)
96 96
             {
97 97
                 $this->point($aPoint[0], $aPoint[1], $aPoint[2]);
98 98
             }
@@ -118,12 +118,12 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function expr($iStart, $iEnd, $iStep, $sJsValue, $sJsLabel = ''): int
120 120
     {
121
-        for($x = $iStart; $x < $iEnd; $x += $iStep)
121
+        for ($x = $iStart; $x < $iEnd; $x += $iStep)
122 122
         {
123 123
             $this->aPoints[] = $x;
124 124
         }
125 125
         $this->aValues['func'] = $sJsValue;
126
-        if(($sJsLabel))
126
+        if (($sJsLabel))
127 127
         {
128 128
             $this->aLabels['func'] = $sJsLabel;
129 129
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,8 +91,7 @@
 block discarded – undo
91 91
             if(count($aPoint) === 2)
92 92
             {
93 93
                 $this->point($aPoint[0], $aPoint[1]);
94
-            }
95
-            else if(count($aPoint) === 3)
94
+            } else if(count($aPoint) === 3)
96 95
             {
97 96
                 $this->point($aPoint[0], $aPoint[1], $aPoint[2]);
98 97
             }
Please login to merge, or discard this patch.
jaxon-flot/src/FlotPlugin.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public function getScript(): string
77 77
     {
78
-        return $this->xConfigManager->getOption('js.app.export', false) ? '' :
79
-            $this->xTemplateEngine->render('jaxon::flot::flot.js');
78
+        return $this->xConfigManager->getOption('js.app.export', false) ? '' : $this->xTemplateEngine->render('jaxon::flot::flot.js');
80 79
     }
81 80
 
82 81
     /**
@@ -84,7 +83,7 @@  discard block
 block discarded – undo
84 83
      */
85 84
     public function getJsCode(): ?JsCode
86 85
     {
87
-        if(!$this->xConfigManager->getOption('js.app.export', false))
86
+        if (!$this->xConfigManager->getOption('js.app.export', false))
88 87
         {
89 88
             return null;
90 89
         }
Please login to merge, or discard this patch.
jaxon-examples/templates/component/pagination/wrapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <nav><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
     }
Please login to merge, or discard this patch.
jaxon-examples/templates/examples/nav.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
             <div class="col-12">
6 6
                 <a href="/"><span class="badge bg-<?= $current === '' ?
7 7
                     'primary' : 'secondary'; ?>">Home</span></a>
8
-<?php foreach(menu_entries() as $example => $page): ?>
8
+<?php foreach (menu_entries() as $example => $page): ?>
9 9
                 <a href="<?= menu_url($example) ?>"><span class="badge bg-<?php 
10 10
                     echo $current === $example ? 'primary' : 'secondary'; ?>"><?php
11 11
                     echo $page['title'] ?></span></a>
Please login to merge, or discard this patch.
jaxon-examples/templates/examples/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 </p>
17 17
                     </div>
18 18
                 </div>
19
-<?php foreach(menu_entries() as $example => $page): ?>
19
+<?php foreach (menu_entries() as $example => $page): ?>
20 20
                 <div class="row col-md-12">
21 21
                     <div class="col-md-12">
22 22
 <h5 style="margin-top:15px;"><a href="<?= menu_url($example) ?>"><?= $page['title'] ?></a></h5>
Please login to merge, or discard this patch.
jaxon-examples/classes/namespace/app/Test/Test.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
     {
9 9
         $text = $isCaps ? 'HELLO WORLD!' : 'Hello World!';
10 10
         $this->response->assign('div1', 'innerHTML', $text);
11
-        if(($bNotify))
11
+        if (($bNotify))
12 12
             $this->response->dialog->success("div1 text is now $text");
13 13
     }
14 14
 
15 15
     public function setColor(string $sColor, bool $bNotify = true)
16 16
     {
17 17
         $this->response->assign('div1', 'style.color', $sColor);
18
-        if(($bNotify))
18
+        if (($bNotify))
19 19
             $this->response->dialog->success("div1 color is now $sColor");
20 20
     }
21 21
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,15 +8,17 @@
 block discarded – undo
8 8
     {
9 9
         $text = $isCaps ? 'HELLO WORLD!' : 'Hello World!';
10 10
         $this->response->assign('div1', 'innerHTML', $text);
11
-        if(($bNotify))
12
-            $this->response->dialog->success("div1 text is now $text");
11
+        if(($bNotify)) {
12
+                    $this->response->dialog->success("div1 text is now $text");
13
+        }
13 14
     }
14 15
 
15 16
     public function setColor(string $sColor, bool $bNotify = true)
16 17
     {
17 18
         $this->response->assign('div1', 'style.color', $sColor);
18
-        if(($bNotify))
19
-            $this->response->dialog->success("div1 color is now $sColor");
19
+        if(($bNotify)) {
20
+                    $this->response->dialog->success("div1 color is now $sColor");
21
+        }
20 22
     }
21 23
 
22 24
     public function showDialog()
Please login to merge, or discard this patch.
jaxon-examples/classes/namespace/ext/Test/Test.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
     {
9 9
         $text = $isCaps ? 'HELLO WORLD!' : 'Hello World!';
10 10
         $this->response->assign('div2', 'innerHTML', $text);
11
-        if(($bNotify))
11
+        if (($bNotify))
12 12
             $this->response->dialog->success("div2 text is now $text");
13 13
     }
14 14
 
15 15
     public function setColor(string $sColor, bool $bNotify = true)
16 16
     {
17 17
         $this->response->assign('div2', 'style.color', $sColor);
18
-        if(($bNotify))
18
+        if (($bNotify))
19 19
             $this->response->dialog->success("div2 color is now $sColor");
20 20
     }
21 21
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,15 +8,17 @@
 block discarded – undo
8 8
     {
9 9
         $text = $isCaps ? 'HELLO WORLD!' : 'Hello World!';
10 10
         $this->response->assign('div2', 'innerHTML', $text);
11
-        if(($bNotify))
12
-            $this->response->dialog->success("div2 text is now $text");
11
+        if(($bNotify)) {
12
+                    $this->response->dialog->success("div2 text is now $text");
13
+        }
13 14
     }
14 15
 
15 16
     public function setColor(string $sColor, bool $bNotify = true)
16 17
     {
17 18
         $this->response->assign('div2', 'style.color', $sColor);
18
-        if(($bNotify))
19
-            $this->response->dialog->success("div2 color is now $sColor");
19
+        if(($bNotify)) {
20
+                    $this->response->dialog->success("div2 color is now $sColor");
21
+        }
20 22
     }
21 23
 
22 24
     public function showDialog()
Please login to merge, or discard this patch.
jaxon-examples/classes/simple/app/Test/App.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
             $text = 'Hello World!';
11 11
 
12 12
         $this->response->assign('div1', 'innerHTML', $text);
13
-        if(($bNotify))
13
+        if (($bNotify))
14 14
             $this->response->dialog->success("div1 text is now $text");
15 15
     }
16 16
 
17 17
     public function setColor(string $sColor, bool $bNotify = true)
18 18
     {
19 19
         $this->response->assign('div1', 'style.color', $sColor);
20
-        if(($bNotify))
20
+        if (($bNotify))
21 21
             $this->response->dialog->success("div1 color is now $sColor");
22 22
     }
23 23
 
Please login to merge, or discard this patch.
Braces   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,21 +4,24 @@
 block discarded – undo
4 4
 {
5 5
     public function sayHello(bool $isCaps, bool $bNotify = true)
6 6
     {
7
-        if ($isCaps)
8
-            $text = 'HELLO WORLD!';
9
-        else
10
-            $text = 'Hello World!';
7
+        if ($isCaps) {
8
+                    $text = 'HELLO WORLD!';
9
+        } else {
10
+                    $text = 'Hello World!';
11
+        }
11 12
 
12 13
         $this->response->assign('div1', 'innerHTML', $text);
13
-        if(($bNotify))
14
-            $this->response->dialog->success("div1 text is now $text");
14
+        if(($bNotify)) {
15
+                    $this->response->dialog->success("div1 text is now $text");
16
+        }
15 17
     }
16 18
 
17 19
     public function setColor(string $sColor, bool $bNotify = true)
18 20
     {
19 21
         $this->response->assign('div1', 'style.color', $sColor);
20
-        if(($bNotify))
21
-            $this->response->dialog->success("div1 color is now $sColor");
22
+        if(($bNotify)) {
23
+                    $this->response->dialog->success("div1 color is now $sColor");
24
+        }
22 25
     }
23 26
 
24 27
     public function showDialog()
Please login to merge, or discard this patch.
jaxon-examples/classes/simple/ext/Test/Ext.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@
 block discarded – undo
10 10
             $text = 'Hello World!';
11 11
 
12 12
         $this->response->assign('div2', 'innerHTML', $text);
13
-        if(($bNotify))
13
+        if (($bNotify))
14 14
             $this->response->dialog->success("div2 text is now $text");
15 15
     }
16 16
 
17 17
     public function setColor(string $sColor, bool $bNotify = true)
18 18
     {
19 19
         $this->response->assign('div2', 'style.color', $sColor);
20
-        if(($bNotify))
20
+        if (($bNotify))
21 21
             $this->response->dialog->success("div2 color is now $sColor");
22 22
     }
23 23
 
Please login to merge, or discard this patch.
Braces   +11 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,21 +4,24 @@
 block discarded – undo
4 4
 {
5 5
     public function sayHello(bool $isCaps, bool $bNotify = true)
6 6
     {
7
-        if ($isCaps)
8
-            $text = 'HELLO WORLD!';
9
-        else
10
-            $text = 'Hello World!';
7
+        if ($isCaps) {
8
+                    $text = 'HELLO WORLD!';
9
+        } else {
10
+                    $text = 'Hello World!';
11
+        }
11 12
 
12 13
         $this->response->assign('div2', 'innerHTML', $text);
13
-        if(($bNotify))
14
-            $this->response->dialog->success("div2 text is now $text");
14
+        if(($bNotify)) {
15
+                    $this->response->dialog->success("div2 text is now $text");
16
+        }
15 17
     }
16 18
 
17 19
     public function setColor(string $sColor, bool $bNotify = true)
18 20
     {
19 21
         $this->response->assign('div2', 'style.color', $sColor);
20
-        if(($bNotify))
21
-            $this->response->dialog->success("div2 color is now $sColor");
22
+        if(($bNotify)) {
23
+                    $this->response->dialog->success("div2 color is now $sColor");
24
+        }
22 25
     }
23 26
 
24 27
     public function showDialog()
Please login to merge, or discard this patch.