| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function react(JWTInterface $jwt, Guard $guard): View |
||
| 40 | { |
||
| 41 | $user = User::guest(); |
||
| 42 | |||
| 43 | if ($guard->check()) { |
||
| 44 | $user = $guard->user(); |
||
| 45 | } |
||
| 46 | |||
| 47 | return view('layout.react', [ |
||
| 48 | 'token' => $jwt->encode([ |
||
| 49 | 'user' => [ |
||
| 50 | 'id' => $user->getAuthIdentifier(), |
||
| 51 | 'password' => $user->getAuthPassword(), |
||
| 52 | ], |
||
| 53 | 'token' => $user->getRememberToken(), |
||
| 54 | ]), |
||
| 55 | ]); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.