@@ -33,8 +33,8 @@ |
||
| 33 | 33 | |
| 34 | 34 | public function getIdAttribute(): string |
| 35 | 35 | { |
| 36 | - $this->attributes["id"] = $this->attributes["id"] |
|
| 37 | - ?? Str::random(16); |
|
| 36 | + $this->attributes["id"] = $this->attributes["id"] |
|
| 37 | + ?? Str::random(16); |
|
| 38 | 38 | |
| 39 | 39 | return $this->attributes["id"]; |
| 40 | 40 | } |
@@ -33,40 +33,40 @@ |
||
| 33 | 33 | |
| 34 | 34 | public function getIdAttribute(): string |
| 35 | 35 | { |
| 36 | - $this->attributes["id"] = $this->attributes["id"] |
|
| 36 | + $this->attributes[ "id" ] = $this->attributes[ "id" ] |
|
| 37 | 37 | ?? Str::random(16); |
| 38 | 38 | |
| 39 | - return $this->attributes["id"]; |
|
| 39 | + return $this->attributes[ "id" ]; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function getAutoHideAttribute(): bool |
| 43 | 43 | { |
| 44 | - return ($this->attributes['autoHide'] === true); |
|
| 44 | + return ($this->attributes[ 'autoHide' ] === true); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function getFrameworkAttribute(): string |
| 48 | 48 | { |
| 49 | - return $this->attributes['framework'] |
|
| 49 | + return $this->attributes[ 'framework' ] |
|
| 50 | 50 | ?: config('genealabs-laravel-messenger.framework'); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function getMessageAttribute(): string |
| 54 | 54 | { |
| 55 | - return $this->attributes['message'] ?: ''; |
|
| 55 | + return $this->attributes[ 'message' ] ?: ''; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | public function getLevelAttribute(): string |
| 59 | 59 | { |
| 60 | - return $this->attributes['level'] ?: 'info'; |
|
| 60 | + return $this->attributes[ 'level' ] ?: 'info'; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | public function getTitleAttribute(): string |
| 64 | 64 | { |
| 65 | - return $this->attributes['title'] ?: ''; |
|
| 65 | + return $this->attributes[ 'title' ] ?: ''; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | public function getTypeAttribute(): string |
| 69 | 69 | { |
| 70 | - return $this->attributes['type'] ?: 'alert'; |
|
| 70 | + return $this->attributes[ 'type' ] ?: 'alert'; |
|
| 71 | 71 | } |
| 72 | 72 | } |