@@ -1,10 +1,10 @@  | 
                                                    ||
| 1 | -<?php if(($this->defaultForMessage)): ?>  | 
                                                        |
| 1 | +<?php if (($this->defaultForMessage)): ?>  | 
                                                        |
| 2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.jconfirm.success;  | 
                                                        
| 3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.jconfirm.info;  | 
                                                        
| 4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.jconfirm.warning;  | 
                                                        
| 5 | 5 | jaxon.ajax.message.error = jaxon.dialogs.jconfirm.error;  | 
                                                        
| 6 | 6 | <?php endif ?>  | 
                                                        
| 7 | -<?php if(($this->defaultForQuestion)): ?>  | 
                                                        |
| 7 | +<?php if (($this->defaultForQuestion)): ?>  | 
                                                        |
| 8 | 8 | jaxon.ajax.message.confirm = jaxon.dialogs.jconfirm.confirm;  | 
                                                        
| 9 | 9 | <?php endif ?>  | 
                                                        
| 10 | 10 |      jaxon.command.handler.register("jconfirm.show", jaxon.dialogs.jconfirm.show); | 
                                                        
@@ -4,12 +4,12 @@  | 
                                                    ||
| 4 | 4 |      jaxon.command.handler.register("bootstrap.show", jaxon.dialogs.bootstrap.show); | 
                                                        
| 5 | 5 |      jaxon.command.handler.register("bootstrap.hide", jaxon.dialogs.bootstrap.hide); | 
                                                        
| 6 | 6 |      jaxon.command.handler.register("bootstrap.alert", jaxon.dialogs.bootstrap.alert); | 
                                                        
| 7 | -<?php if(($this->defaultForMessage)): ?>  | 
                                                        |
| 7 | +<?php if (($this->defaultForMessage)): ?>  | 
                                                        |
| 8 | 8 | jaxon.ajax.message.success = jaxon.dialogs.bootstrap.success;  | 
                                                        
| 9 | 9 | jaxon.ajax.message.info = jaxon.dialogs.bootstrap.info;  | 
                                                        
| 10 | 10 | jaxon.ajax.message.warning = jaxon.dialogs.bootstrap.warning;  | 
                                                        
| 11 | 11 | jaxon.ajax.message.error = jaxon.dialogs.bootstrap.error;  | 
                                                        
| 12 | 12 | <?php endif ?>  | 
                                                        
| 13 | -<?php if(($this->defaultForQuestion)): ?>  | 
                                                        |
| 13 | +<?php if (($this->defaultForQuestion)): ?>  | 
                                                        |
| 14 | 14 | jaxon.ajax.message.confirm = jaxon.dialogs.bootstrap.confirm;  | 
                                                        
| 15 | 15 | <?php endif;  | 
                                                        
@@ -1,10 +1,10 @@  | 
                                                    ||
| 1 | -<?php if(($this->defaultForMessage)): ?>  | 
                                                        |
| 1 | +<?php if (($this->defaultForMessage)): ?>  | 
                                                        |
| 2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.pnotify.success;  | 
                                                        
| 3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.pnotify.info;  | 
                                                        
| 4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.pnotify.warning;  | 
                                                        
| 5 | 5 | jaxon.ajax.message.error = jaxon.dialogs.pnotify.error;  | 
                                                        
| 6 | 6 | <?php endif ?>  | 
                                                        
| 7 | -<?php if(($this->defaultForQuestion)): ?>  | 
                                                        |
| 7 | +<?php if (($this->defaultForQuestion)): ?>  | 
                                                        |
| 8 | 8 | jaxon.ajax.message.confirm = jaxon.dialogs.pnotify.confirm;  | 
                                                        
| 9 | 9 | <?php endif ?>  | 
                                                        
| 10 | 10 | PNotify.prototype.options.delay = 5000;  | 
                                                        
@@ -1,5 +1,5 @@  | 
                                                    ||
| 1 | 1 | <?php echo $this->options ?>  | 
                                                        
| 2 | -<?php if(($this->defaultForMessage)): ?>  | 
                                                        |
| 2 | +<?php if (($this->defaultForMessage)): ?>  | 
                                                        |
| 3 | 3 | jaxon.ajax.message.success = jaxon.dialogs.toastr.success;  | 
                                                        
| 4 | 4 | jaxon.ajax.message.info = jaxon.dialogs.toastr.info;  | 
                                                        
| 5 | 5 | jaxon.ajax.message.warning = jaxon.dialogs.toastr.warning;  | 
                                                        
@@ -1,4 +1,4 @@  | 
                                                    ||
| 1 | -<?php if(($this->defaultForMessage)): ?>  | 
                                                        |
| 1 | +<?php if (($this->defaultForMessage)): ?>  | 
                                                        |
| 2 | 2 | jaxon.ajax.message.success = jaxon.dialogs.notify.success;  | 
                                                        
| 3 | 3 | jaxon.ajax.message.info = jaxon.dialogs.notify.info;  | 
                                                        
| 4 | 4 | jaxon.ajax.message.warning = jaxon.dialogs.notify.warning;  | 
                                                        
@@ -91,7 +91,7 @@  | 
                                                    ||
| 91 | 91 | */  | 
                                                        
| 92 | 92 | protected function alert(string $sMessage, string $sTitle, string $sType): string  | 
                                                        
| 93 | 93 |      { | 
                                                        
| 94 | - if($this->returnCode())  | 
                                                        |
| 94 | + if ($this->returnCode())  | 
                                                        |
| 95 | 95 |          { | 
                                                        
| 96 | 96 | return empty($sTitle) ? "toastr.$sType($sMessage)" : "toastr.$sType($sMessage, '$sTitle')";  | 
                                                        
| 97 | 97 | }  | 
                                                        
@@ -63,7 +63,7 @@ discard block  | 
                                                    ||
| 63 | 63 | */  | 
                                                        
| 64 | 64 | public function getScript(): string  | 
                                                        
| 65 | 65 |      { | 
                                                        
| 66 | -         return $this->helper()->render('noty/alert.js'); | 
                                                        |
| 66 | +            return $this->helper()->render('noty/alert.js'); | 
                                                        |
| 67 | 67 | }  | 
                                                        
| 68 | 68 | |
| 69 | 69 | /**  | 
                                                        
@@ -71,7 +71,7 @@ discard block  | 
                                                    ||
| 71 | 71 | */  | 
                                                        
| 72 | 72 | public function getReadyScript(): string  | 
                                                        
| 73 | 73 |      { | 
                                                        
| 74 | -         return $this->helper()->render('noty/ready.js.php'); | 
                                                        |
| 74 | +            return $this->helper()->render('noty/ready.js.php'); | 
                                                        |
| 75 | 75 | }  | 
                                                        
| 76 | 76 | |
| 77 | 77 | /**  | 
                                                        
@@ -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 | }  | 
                                                        
@@ -81,7 +81,7 @@  | 
                                                    ||
| 81 | 81 | */  | 
                                                        
| 82 | 82 | protected function alert(string $sMessage, string $sTitle, string $sClass): string  | 
                                                        
| 83 | 83 |      { | 
                                                        
| 84 | - if($this->returnCode())  | 
                                                        |
| 84 | + if ($this->returnCode())  | 
                                                        |
| 85 | 85 |          { | 
                                                        
| 86 | 86 |              return "$.notify(" . $sMessage . ", {className:'" . $sClass . "', position:'top center'})"; | 
                                                        
| 87 | 87 | }  | 
                                                        
@@ -129,8 +129,7 @@  | 
                                                    ||
| 129 | 129 | if(($sTitle))  | 
                                                        
| 130 | 130 |              { | 
                                                        
| 131 | 131 |                  return "BootstrapDialog.alert({message:" . $sMessage . ", title:'" . $sTitle . "', type:" . $sType . "})"; | 
                                                        
| 132 | - }  | 
                                                        |
| 133 | - else  | 
                                                        |
| 132 | + } else  | 
                                                        |
| 134 | 133 |              { | 
                                                        
| 135 | 134 |                  return "BootstrapDialog.alert({message:" . $sMessage . ", type:" . $sType . "})"; | 
                                                        
| 136 | 135 | }  | 
                                                        
@@ -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 | }  |