Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | protected function addUserInformation(&$payload) |
||
19 | { |
||
20 | if ($this->container->bound(Guard::class)) { |
||
21 | $payload['user_id'] = $this->userId(); |
||
22 | $payload['user_type'] = ($user = $this->container->make(Guard::class)->user()) ? $user->getMorphClass() : null; |
||
|
|||
23 | } |
||
24 | |||
25 | return $this; |
||
26 | } |
||
27 | } |
||
28 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.