Passed
Push — v5.x ( 0160d0 )
by Thierry
09:10
created
src/Bootstrap/BootstrapLibrary.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         $aOptions['title'] = $sTitle;
96 96
         $aOptions['message'] = $sContent;
97 97
         $aOptions['buttons'] = [];
98
-        foreach($aButtons as $button)
98
+        foreach ($aButtons as $button)
99 99
         {
100 100
             $_button = [
101 101
                 'label' => $button['title'],
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
                 'action' => $button['click'],
104 104
             ];
105 105
             // Optional attributes
106
-            foreach($button as $attr => $value)
106
+            foreach ($button as $attr => $value)
107 107
             {
108
-                if(!in_array($attr, ['title', 'class', 'click']))
108
+                if (!in_array($attr, ['title', 'class', 'click']))
109 109
                 {
110 110
                     $_button[$attr] = $value;
111 111
                 }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $aOptions['buttons'][] = $_button;
114 114
         }
115 115
         // Turn the value of the nl2br option to false, because it alters form rendering.
116
-        if(!array_key_exists('nl2br', $aOptions))
116
+        if (!array_key_exists('nl2br', $aOptions))
117 117
         {
118 118
             $aOptions['nl2br'] = false;
119 119
         }
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         ];
141 141
         $sType = $aTypes[$sStdType] ?? $sStdType;
142 142
         $aOptions = ['message' => $sMessage, 'type' => $sType];
143
-        if(($sTitle))
143
+        if (($sTitle))
144 144
         {
145 145
             $aOptions['title'] = $sTitle;
146 146
         }
Please login to merge, or discard this patch.
src/CuteAlert/CuteAlertLibrary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      */
85 85
     protected function alert(string $sMessage, string $sTitle, string $sStdType)
86 86
     {
87
-        if(!$sTitle)
87
+        if (!$sTitle)
88 88
         {
89 89
             $sTitle = ' ';
90 90
         }
Please login to merge, or discard this patch.
src/Bootbox/BootboxLibrary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
         // Assign dialog content
104 104
         $this->response()->assign($sContainer, 'innerHTML', $html);
105 105
         $this->response()->jq('#styledModal')->modal('show');
106
-        if(isset($aOptions['width']))
106
+        if (isset($aOptions['width']))
107 107
         {
108 108
             // Set the value of the dialog width
109 109
             $width = $aOptions['width'];
Please login to merge, or discard this patch.