Passed
Push — master ( b56543...0c4a9b )
by Thierry
08:44 queued 01:29
created
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.
src/Library/Lobibox/LobiboxLibrary.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $aOptions['content'] = $sContent;
94 94
         $aOptions['buttons'] = [];
95 95
         $ind = 0;
96
-        foreach($aButtons as $button)
96
+        foreach ($aButtons as $button)
97 97
         {
98 98
             $_button = [
99 99
                 'text' => $button['title'],
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
                 'class' => $button['class'],
102 102
             ];
103 103
             // Optional attributes
104
-            foreach($button as $attr => $value)
104
+            foreach ($button as $attr => $value)
105 105
             {
106
-                if(!in_array($attr, ['title', 'class', 'click']))
106
+                if (!in_array($attr, ['title', 'class', 'click']))
107 107
                 {
108 108
                     $_button[$attr] = $value;
109 109
                 }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function notify(string $sMessage, string $sTitle, string $sType): string
137 137
     {
138
-        if($this->returnCode())
138
+        if ($this->returnCode())
139 139
         {
140 140
             return "Lobibox.notify('" . $sType . "', {title:'" . $sTitle . "', msg:" . $sMessage . "})";
141 141
         }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string
184 184
     {
185 185
         $sTitle = $this->helper()->getQuestionTitle();
186
-        if(!$sNoScript)
186
+        if (!$sNoScript)
187 187
         {
188 188
             return "jaxon.dialogs.lobibox.confirm(" . $sQuestion . ",'" .
189 189
                 $sTitle . "',function(){" . $sYesScript . ";})";
Please login to merge, or discard this patch.
src/Library/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.
src/Library/JQueryConfirm/JQueryConfirmLibrary.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,13 +97,13 @@  discard block
 block discarded – undo
97 97
         $aOptions['title'] = $sTitle;
98 98
         $aOptions['content'] = $sMessage;
99 99
         $aOptions['buttons'] = [];
100
-        if(!array_key_exists('boxWidth', $aOptions))
100
+        if (!array_key_exists('boxWidth', $aOptions))
101 101
         {
102 102
             $aOptions['useBootstrap'] = false;
103 103
             $aOptions['boxWidth'] = '600';
104 104
         }
105 105
         $ind = 0;
106
-        foreach($aButtons as $button)
106
+        foreach ($aButtons as $button)
107 107
         {
108 108
             $_button = [
109 109
                 'text' => $button['title'],
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
                 'action' => $button['click'],
112 112
             ];
113 113
             // Optional attributes
114
-            foreach($button as $attr => $value)
114
+            foreach ($button as $attr => $value)
115 115
             {
116
-                if(!in_array($attr, ['title', 'class', 'click']))
116
+                if (!in_array($attr, ['title', 'class', 'click']))
117 117
                 {
118 118
                     $_button[$attr] = $value;
119 119
                 }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function alert(string $sMessage, string $sTitle, string $sType, string $sIcon): string
147 147
     {
148
-        if($this->returnCode())
148
+        if ($this->returnCode())
149 149
         {
150 150
             return "$.alert({content:" . $sMessage . ", title:'" . $sTitle .
151 151
                 "', type:'" . $sType . "', icon:'" . $sIcon . "'})";
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string
194 194
     {
195 195
         $sTitle = $this->helper()->getQuestionTitle();
196
-        if(!$sNoScript)
196
+        if (!$sNoScript)
197 197
         {
198 198
             return "jaxon.dialogs.jconfirm.confirm(" . $sQuestion . ",'" .
199 199
                 $sTitle . "',function(){" . $sYesScript . ";})";
Please login to merge, or discard this patch.