@@ -51,12 +51,12 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | protected function push($user_ids, $msg, $extras = null) |
| 53 | 53 | { |
| 54 | - if (! $this->jpush) { |
|
| 54 | + if (!$this->jpush) { |
|
| 55 | 55 | $this->jpush = new Jpush(); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $user_ids = (array) $user_ids; |
| 59 | - $user_ids = array_map(function ($user_id) { |
|
| 59 | + $user_ids = array_map(function($user_id) { |
|
| 60 | 60 | return 'userid_'.$user_id; |
| 61 | 61 | }, $user_ids); |
| 62 | 62 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function withOnly($relation, $columns = null, $with_trashed = false) |
| 17 | 17 | { |
| 18 | - $this->model = $this->model->with([$relation => function ($query) use ($columns, $with_trashed) { |
|
| 18 | + $this->model = $this->model->with([$relation => function($query) use ($columns, $with_trashed) { |
|
| 19 | 19 | if ($with_trashed) { |
| 20 | 20 | $query->withTrashed(); |
| 21 | 21 | } |