Passed
Push — master ( 9b3a22...f80704 )
by Thierry
07:39 queued 05:30
created
src/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/PNotify/PNotifyLibrary.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     protected function alert(string $sMessage, string $sTitle, string $sType): string
97 97
     {
98
-        if($this->returnCode())
98
+        if ($this->returnCode())
99 99
         {
100 100
             return "jaxon.dialogs.pnotify.alert({text:" . $sMessage . ", type:'" . $sType . "', title:'" . $sTitle . "'})";
101 101
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string
144 144
     {
145 145
         $sTitle = $this->helper()->getQuestionTitle();
146
-        if(!$sNoScript)
146
+        if (!$sNoScript)
147 147
         {
148 148
             return "jaxon.dialogs.pnotify.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})";
149 149
         }
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/Bootbox/BootboxLibrary.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function alert(string $sContent, string $sTitle, string $sType): string
125 125
     {
126
-        if($this->returnCode())
126
+        if ($this->returnCode())
127 127
         {
128 128
             return "jaxon.dialogs.bootbox.alert('" . $sType . "'," . $sContent . ",'" . $sTitle . "')";
129 129
         }
@@ -170,8 +170,7 @@  discard block
 block discarded – undo
170 170
     {
171 171
         $sTitle = $this->helper()->getQuestionTitle();
172 172
         return empty($sNoScript) ?
173
-            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" :
174
-            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript .
173
+            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript .
175 174
                 ";},function(){" . $sNoScript . ";})";
176 175
     }
177 176
 }
Please login to merge, or discard this patch.