@@ -26,32 +26,32 @@ |
||
| 26 | 26 | |
| 27 | 27 | public function getAutoHideAttribute() : bool |
| 28 | 28 | { |
| 29 | - return ($this->attributes['autoHide'] === true); |
|
| 29 | + return ($this->attributes[ 'autoHide' ] === true); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function getFrameworkAttribute() : string |
| 33 | 33 | { |
| 34 | - return $this->attributes['framework'] |
|
| 34 | + return $this->attributes[ 'framework' ] |
|
| 35 | 35 | ?: config('genealabs-laravel-messenger.framework'); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function getMessageAttribute() : string |
| 39 | 39 | { |
| 40 | - return $this->attributes['message'] ?: ''; |
|
| 40 | + return $this->attributes[ 'message' ] ?: ''; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | public function getLevelAttribute() : string |
| 44 | 44 | { |
| 45 | - return $this->attributes['level'] ?: 'info'; |
|
| 45 | + return $this->attributes[ 'level' ] ?: 'info'; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function getTitleAttribute() : string |
| 49 | 49 | { |
| 50 | - return $this->attributes['title'] ?: ''; |
|
| 50 | + return $this->attributes[ 'title' ] ?: ''; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function getTypeAttribute() : string |
| 54 | 54 | { |
| 55 | - return $this->attributes['type'] ?: 'alert'; |
|
| 55 | + return $this->attributes[ 'type' ] ?: 'alert'; |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | $message = session('genealabs-laravel-messenger.message'); |
| 10 | 10 | session()->forget('genealabs-laravel-messenger.message'); |
| 11 | 11 | |
| 12 | - if (! $message) { |
|
| 12 | + if (!$message) { |
|
| 13 | 13 | return view("genealabs-laravel-messenger::empty"); |
| 14 | 14 | } |
| 15 | 15 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | ]); |
| 41 | 41 | |
| 42 | 42 | if ($text) { |
| 43 | - session(['genealabs-laravel-messenger.message' => $message]); |
|
| 43 | + session([ 'genealabs-laravel-messenger.message' => $message ]); |
|
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | } |