Passed
Push — v4.x ( c8e135 )
by Thierry
11:03 queued 01:39
created
src/JQueryConfirm/JQueryConfirmLibrary.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
         $aOptions['title'] = $sTitle;
99 99
         $aOptions['content'] = $sMessage;
100 100
         $aOptions['buttons'] = [];
101
-        if(!array_key_exists('boxWidth', $aOptions))
101
+        if (!array_key_exists('boxWidth', $aOptions))
102 102
         {
103 103
             $aOptions['useBootstrap'] = false;
104 104
             $aOptions['boxWidth'] = '600';
105 105
         }
106 106
         $ind = 0;
107
-        foreach($aButtons as $button)
107
+        foreach ($aButtons as $button)
108 108
         {
109 109
             $_button = [
110 110
                 'text' => $button['title'],
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
                 'action' => $button['click'],
113 113
             ];
114 114
             // Optional attributes
115
-            foreach($button as $attr => $value)
115
+            foreach ($button as $attr => $value)
116 116
             {
117
-                if(!in_array($attr, ['title', 'class', 'click']))
117
+                if (!in_array($attr, ['title', 'class', 'click']))
118 118
                 {
119 119
                     $_button[$attr] = $value;
120 120
                 }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     protected function alert(string $sMessage, string $sTitle, string $sType, string $sIcon): string
148 148
     {
149
-        if($this->returnCode())
149
+        if ($this->returnCode())
150 150
         {
151 151
             return "$.alert({content:" . $sMessage . ", title:'" . $sTitle .
152 152
                 "', type:'" . $sType . "', icon:'" . $sIcon . "'})";
Please login to merge, or discard this patch.
src/SweetAlert/SweetAlertLibrary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,12 +96,12 @@
 block discarded – undo
96 96
      */
97 97
     protected function alert(string $sMessage, string $sTitle, string $sType): string
98 98
     {
99
-        if($this->returnCode())
99
+        if ($this->returnCode())
100 100
         {
101 101
             return "swal({text:" . $sMessage . ", title:'" . $sTitle . "', type:'" . $sType . "'})";
102 102
         }
103 103
         $aOptions = ['text' => $sMessage, 'title' => '', 'type' => $sType];
104
-        if(($sTitle))
104
+        if (($sTitle))
105 105
         {
106 106
             $aOptions['title'] = $sTitle;
107 107
         }
Please login to merge, or discard this patch.
src/Overhang/OverhangLibrary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      */
95 95
     protected function alert(string $sMessage, string $sTitle, string $sType): string
96 96
     {
97
-        if($this->returnCode())
97
+        if ($this->returnCode())
98 98
         {
99 99
             return "$('body').overhang({message:" . $sMessage . ", type:'" . $sType . "'})";
100 100
         }
Please login to merge, or discard this patch.
src/PNotify/PNotifyLibrary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      */
97 97
     protected function alert(string $sMessage, string $sTitle, string $sType): string
98 98
     {
99
-        if($this->returnCode())
99
+        if ($this->returnCode())
100 100
         {
101 101
             return "jaxon.dialogs.pnotify.alert({text:" . $sMessage . ", type:'" . $sType . "', title:'" . $sTitle . "'})";
102 102
         }
Please login to merge, or discard this patch.
src/Bootbox/BootboxLibrary.php 1 patch
Spacing   +2 added lines, -2 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
             $this->response()->script("$('#styledModal').modal('show')");
104 104
             return;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     protected function alert(string $sContent, string $sTitle, string $sType): string
129 129
     {
130
-        if($this->returnCode())
130
+        if ($this->returnCode())
131 131
         {
132 132
             return "jaxon.dialogs.bootbox.alert('" . $sType . "'," . $sContent . ",'" . $sTitle . "')";
133 133
         }
Please login to merge, or discard this patch.