| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace JobApis\JobsToMail\Http\Middleware; |
||
| 30 | 2 | public function handle($request, Closure $next) |
|
| 31 | { |
||
| 32 | 2 | if ($userId = $request->session()->get('user.id')) { |
|
| 33 | // Update the user's session |
||
| 34 | 1 | $request->session()->put( |
|
|
|
|||
| 35 | 1 | 'user', |
|
| 36 | 1 | $this->users->getById($userId) |
|
| 37 | ); |
||
| 38 | } |
||
| 39 | 2 | return $next($request); |
|
| 40 | } |
||
| 41 | } |
||
| 42 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.