@@ -41,11 +41,11 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function scopeLimit($query) |
| 43 | 43 | { |
| 44 | - return $query->select('notifications.*','key'); |
|
| 44 | + return $query->select('notifications.*', 'key'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function users() { |
| 48 | - return $this->belongsToMany('App\User')->withPivot('notifications_id','user_id'); |
|
| 48 | + return $this->belongsToMany('App\User')->withPivot('notifications_id', 'user_id'); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | $notification = Notification::find($id); |
| 40 | 40 | $enable = strpos($action, 'un') === false; |
| 41 | - if(!$enable) { |
|
| 41 | + if (!$enable) { |
|
| 42 | 42 | $action = substr($action, 2); |
| 43 | 43 | } |
| 44 | 44 | |