Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Modules\User\Http\Controllers\Admin\Account; |
||
45 | public function destroy(UserToken $userToken) |
||
46 | { |
||
47 | $this->userToken->destroy($userToken); |
||
48 | |||
49 | flash(trans('core::core.messages.resource deleted', ['name' => 'Api Token'])); |
||
50 | |||
51 | return redirect()->route('admin.account.api.index'); |
||
52 | } |
||
53 | } |
||
54 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.