@@ -205,16 +205,16 @@ |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | |
208 | - /** |
|
209 | - * Add a notification. |
|
210 | - * |
|
211 | - * @param string $type Could be error, info, success, or warning. |
|
212 | - * @param string $message The notification's message |
|
213 | - * @param string $title The notification's title |
|
214 | - * @param bool $enableCustomButton |
|
215 | - * |
|
216 | - * @return NavToastr |
|
217 | - */ |
|
208 | + /** |
|
209 | + * Add a notification. |
|
210 | + * |
|
211 | + * @param string $type Could be error, info, success, or warning. |
|
212 | + * @param string $message The notification's message |
|
213 | + * @param string $title The notification's title |
|
214 | + * @param bool $enableCustomButton |
|
215 | + * |
|
216 | + * @return NavToastr |
|
217 | + */ |
|
218 | 218 | |
219 | 219 | |
220 | 220 | public function addNotification(string $type, string $message, bool $enableCustomButton = false): self |
@@ -244,11 +244,12 @@ |
||
244 | 244 | |
245 | 245 | $option = array_map( |
246 | 246 | function ($n) { |
247 | - if(array_key_exists('reload', $n) && $n['reload'] == true) |
|
248 | - return array( |
|
247 | + if(array_key_exists('reload', $n) && $n['reload'] == true) { |
|
248 | + return array( |
|
249 | 249 | 'text' => $n['text'], |
250 | 250 | 'onClick' => 'function(){window.location.reload();}' |
251 | 251 | ); |
252 | + } |
|
252 | 253 | return array( |
253 | 254 | 'text' => $n['text'], |
254 | 255 | 'onClick' => 'function(){window.open("'.$n['url'].'");}' |
@@ -58,9 +58,9 @@ |
||
58 | 58 | |
59 | 59 | |
60 | 60 | /** |
61 | - * Get the services provided by the provider |
|
62 | - * @return array |
|
63 | - */ |
|
61 | + * Get the services provided by the provider |
|
62 | + * @return array |
|
63 | + */ |
|
64 | 64 | |
65 | 65 | public function provides() |
66 | 66 | { |