Passed
Push — master ( 0c5836...7e4fb9 )
by Thierry
02:39
created
src/Library/Overhang/OverhangLibrary.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     protected function alert(string $sMessage, string $sTitle, string $sType): string
92 92
     {
93
-        if($this->returnCode())
93
+        if ($this->returnCode())
94 94
         {
95 95
             return "$('body').overhang({message:" . $sMessage . ", type:'" . $sType . "'})";
96 96
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string
139 139
     {
140
-        if(!$sNoScript)
140
+        if (!$sNoScript)
141 141
         {
142 142
             return "jaxon.dialogs.overhang.confirm(" . $sQuestion . ",function(){" . $sYesScript . ";})";
143 143
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,7 @@
 block discarded – undo
121 121
         if(!$sNoScript)
122 122
         {
123 123
             return "jaxon.dialogs.overhang.confirm(" . $sQuestion . ",function(){" . $sYesScript . ";})";
124
-        }
125
-        else
124
+        } else
126 125
         {
127 126
             return "jaxon.dialogs.overhang.confirm(" . $sQuestion . ",function(){" . $sYesScript . ";},function(){" . $sNoScript . ";})";
128 127
         }
Please login to merge, or discard this patch.
src/Library/PNotify/PNotifyLibrary.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function alert(string $sMessage, string $sTitle, string $sType): string
94 94
     {
95
-        if($this->returnCode())
95
+        if ($this->returnCode())
96 96
         {
97 97
             return "jaxon.dialogs.pnotify.alert({text:" . $sMessage . ", type:'" . $sType . "', title:'" . $sTitle . "'})";
98 98
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string
141 141
     {
142 142
         $sTitle = $this->xHelper->getQuestionTitle();
143
-        if(!$sNoScript)
143
+        if (!$sNoScript)
144 144
         {
145 145
             return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})";
146 146
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,8 +124,7 @@
 block discarded – undo
124 124
         if(!$sNoScript)
125 125
         {
126 126
             return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})";
127
-        }
128
-        else
127
+        } else
129 128
         {
130 129
             return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";},function(){" . $sNoScript . ";})";
131 130
         }
Please login to merge, or discard this patch.
src/Library/Bootbox/BootboxLibrary.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     protected function getContainer(): string
57 57
     {
58 58
         $sContainer = 'bootbox-container';
59
-        if($this->xHelper->hasOption('dom.container'))
59
+        if ($this->xHelper->hasOption('dom.container'))
60 60
         {
61 61
             $sContainer = $this->xHelper->getOption('dom.container');
62 62
         }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     protected function alert(string $sContent, string $sTitle, string $sType): string
127 127
     {
128
-        if($this->returnCode())
128
+        if ($this->returnCode())
129 129
         {
130 130
             return "jaxon.dialogs.bootbox.alert('" . $sType . "'," . $sContent . ",'" . $sTitle . "')";
131 131
         }
@@ -172,8 +172,7 @@  discard block
 block discarded – undo
172 172
     {
173 173
         $sTitle = $this->xHelper->getQuestionTitle();
174 174
         return empty($sNoScript) ?
175
-            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" :
176
-            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript .
175
+            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript .
177 176
                 ";},function(){" . $sNoScript . ";})";
178 177
     }
179 178
 }
Please login to merge, or discard this patch.
src/Library/SimplyToast/SimplyToastLibrary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     private function alert(string $sMessage, string $sType): string
92 92
     {
93
-        if($this->returnCode())
93
+        if ($this->returnCode())
94 94
         {
95 95
             return "$.simplyToast(" . $sMessage . ", '" . $sType . "')";
96 96
         }
Please login to merge, or discard this patch.