Passed
Push — main ( c6b105...31af8b )
by Thierry
07:02
created
jaxon-core/src/Request/Handler/RequestHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,7 @@
 block discarded – undo
142 142
         {
143 143
             $this->xResponseManager->error($e->getMessage());
144 144
             $this->xCallbackManager->onInvalid($e);
145
-        }
146
-        catch(Exception $e)
145
+        } catch(Exception $e)
147 146
         {
148 147
             $this->xResponseManager->error($e->getMessage());
149 148
             $this->xCallbackManager->onError($e);
Please login to merge, or discard this patch.
jaxon-dialogs/tests/src/dialog.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,10 @@
 block discarded – undo
63 63
 
64 64
 interface TestInterface
65 65
 {
66
-    public function do();
67
-}
66
+    public function do {
67
+        ();
68
+    }
69
+    }
68 70
 
69 71
 class ClassWithInterface implements TestInterface
70 72
 {
Please login to merge, or discard this patch.
jaxon-dialogs/src/register.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
             try
61 61
             {
62 62
                 $xDialog->registerLibrary($sClass, $sClass::NAME);
63
-            }
64
-            catch(SetupException $_){}
63
+            } catch(SetupException $_){}
65 64
         }
66 65
 
67 66
         return $xDialog;
Please login to merge, or discard this patch.
jaxon-dialogs/src/DialogManager.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,10 +293,12 @@
 block discarded – undo
293 293
         $aLibraries = $this->xConfigManager->getAppOption('dialogs.lib.use', []);
294 294
         foreach($aLibraries as $sLibraryName)
295 295
         {
296
-            if(isset($this->aLibraries[$sLibraryName])) // Make sure the library exists
296
+            if(isset($this->aLibraries[$sLibraryName])) {
297
+                // Make sure the library exists
297 298
             {
298 299
                 $this->aLibraries[$sLibraryName]['used'] = true;
299 300
             }
301
+            }
300 302
         }
301 303
     }
302 304
 
Please login to merge, or discard this patch.
jaxon-flot/src/Data/Series.php 1 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-examples/classes/namespace/app/Test/Test.php 1 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 1 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 1 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 1 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.