Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | public function makeKey(Request $request) |
||
35 | { |
||
36 | $id = auth()->user()->id; |
||
|
|||
37 | $create = $this->apiKey->make($id); |
||
38 | $insertedId = $create->id; |
||
39 | |||
40 | $serviceInsert = $this->apiKey->find($insertedId); |
||
41 | $serviceInsert->service = $request->get('service'); |
||
42 | $serviceInsert->save(); |
||
43 | |||
44 | $token = $this->apiKey->find($insertedId); |
||
45 | |||
46 | session()->flash('message', 'Token created'); |
||
47 | session()->flash('token', $token->key); |
||
48 | return redirect()->back(302); |
||
49 | } |
||
50 | |||
56 |
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.