@@ -86,7 +86,7 @@ |
||
| 86 | 86 | */ |
| 87 | 87 | protected function alert(string $sMessage, string $sTitle, string $sType): string |
| 88 | 88 | { |
| 89 | - if($this->returnCode()) |
|
| 89 | + if ($this->returnCode()) |
|
| 90 | 90 | { |
| 91 | 91 | return "noty({text:" . $sMessage . ", type:'" . $sType . "', layout: 'topCenter'})"; |
| 92 | 92 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $aOptions['title'] = $sTitle; |
| 94 | 94 | $aOptions['message'] = $sContent; |
| 95 | 95 | $aOptions['buttons'] = []; |
| 96 | - foreach($aButtons as $button) |
|
| 96 | + foreach ($aButtons as $button) |
|
| 97 | 97 | { |
| 98 | 98 | $_button = [ |
| 99 | 99 | 'label' => $button['title'], |
@@ -101,9 +101,9 @@ discard block |
||
| 101 | 101 | 'action' => $button['click'], |
| 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 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $aOptions['buttons'][] = $_button; |
| 112 | 112 | } |
| 113 | 113 | // Turn the value of the nl2br option to false, because it alters form rendering. |
| 114 | - if(!array_key_exists('nl2br', $aOptions)) |
|
| 114 | + if (!array_key_exists('nl2br', $aOptions)) |
|
| 115 | 115 | { |
| 116 | 116 | $aOptions['nl2br'] = false; |
| 117 | 117 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | protected function alert(string $sMessage, string $sTitle, string $sType): string |
| 141 | 141 | { |
| 142 | - if($this->returnCode()) |
|
| 142 | + if ($this->returnCode()) |
|
| 143 | 143 | { |
| 144 | 144 | $aDataTypes = [ |
| 145 | 145 | 'success' => 'BootstrapDialog.TYPE_SUCCESS', |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | 'danger' => 'BootstrapDialog.TYPE_DANGER', |
| 149 | 149 | ]; |
| 150 | 150 | $sType = $aDataTypes[$sType]; |
| 151 | - if(($sTitle)) |
|
| 151 | + if (($sTitle)) |
|
| 152 | 152 | { |
| 153 | 153 | return "BootstrapDialog.alert({message:" . $sMessage . ", title:'" . $sTitle . "', type:" . $sType . "})"; |
| 154 | 154 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | } |
| 160 | 160 | $aOptions = ['message' => $sMessage, 'type' => $sType]; |
| 161 | - if(($sTitle)) |
|
| 161 | + if (($sTitle)) |
|
| 162 | 162 | { |
| 163 | 163 | $aOptions['title'] = $sTitle; |
| 164 | 164 | } |
@@ -94,7 +94,7 @@ |
||
| 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 | } |
@@ -96,7 +96,7 @@ |
||
| 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 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 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 |
||
| 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 | } |