| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | protected function addUserInformation(&$payload) |
||
| 20 | { |
||
| 21 | if ($this->container->bound(Guard::class)) { |
||
| 22 | $payload['user_id'] = $this->userId(); |
||
| 23 | $payload['user_type'] = ($user = $this->container->make(Guard::class)->user()) ? $user->getMorphClass() : null; |
||
| 24 | } |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | } |
||
| 29 |