Passed
Push — master ( e5411f...1831e1 )
by Thierry
09:05
created
src/Bootbox/BootboxLibrary.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         // Assign dialog content
100 100
         $this->response()->assign($sContainer, 'innerHTML', $html);
101
-        if(isset($aOptions['width']))
101
+        if (isset($aOptions['width']))
102 102
         {
103 103
             // Set the value of the dialog width
104 104
             $width = $aOptions['width'];
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     protected function alert(string $sContent, string $sTitle, string $sType): string
128 128
     {
129
-        if($this->returnCode())
129
+        if ($this->returnCode())
130 130
         {
131 131
             return "jaxon.dialogs.bootbox.alert('" . $sType . "'," . $sContent . ",'" . $sTitle . "')";
132 132
         }
@@ -174,8 +174,7 @@  discard block
 block discarded – undo
174 174
         $sTitle = $this->helper()->getQuestionTitle();
175 175
 
176 176
         return empty($sNoScript) ?
177
-            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" :
178
-            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript .
177
+            "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript . ";})" : "jaxon.dialogs.bootbox.confirm(" . $sQuestion . ",'" . $sTitle . "',function(){" . $sYesScript .
179 178
                 ";},function(){" . $sNoScript . ";})";
180 179
     }
181 180
 }
Please login to merge, or discard this patch.