Passed
Push — main ( 4ddaea...7c5fe7 )
by Thierry
04:58
created
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.
jaxon-examples/classes/calculator/app/CalcFunc.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             // Render the result component.
39 39
             $this->cl(Result::class)->render();
40 40
         }
41
-        catch(Exception $e)
41
+        catch (Exception $e)
42 42
         {
43 43
             $this->alert()->title('Error!!!')->error($e->getMessage());
44 44
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
             $this->stash()->set('calculator.result', $result);
38 38
             // Render the result component.
39 39
             $this->cl(Result::class)->render();
40
-        }
41
-        catch(Exception $e)
40
+        } catch(Exception $e)
42 41
         {
43 42
             $this->alert()->title('Error!!!')->error($e->getMessage());
44 43
         }
Please login to merge, or discard this patch.