Passed
Push — main ( 7f530d...7aae9b )
by Thierry
05:54
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 1 patch
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.
jaxon-examples/classes/namespace/ext/Test/Test.php 1 patch
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.
jaxon-examples/classes/simple/app/Test/App.php 1 patch
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.
jaxon-examples/classes/simple/ext/Test/Ext.php 1 patch
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.
jaxon-examples/classes/calculator/app/CalcFunc.php 1 patch
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.