Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ApiService |
||
13 | { |
||
14 | |||
15 | protected $api; |
||
16 | function __construct(\TaskManager\ApiKeys $api) |
||
19 | } |
||
20 | |||
21 | public function generateKey($user_id=null) |
||
|
|||
22 | { |
||
23 | $this->api->key = uniqid(); |
||
24 | $this->api->active = true; |
||
25 | $this->api->user_id = auth()->id(); |
||
26 | $this->api->save(); |
||
27 | return $this->api->key; |
||
28 | } |
||
29 | |||
30 | public function getApi(){ |
||
32 | } |
||
33 | |||
34 | |||
35 | public function exists() |
||
45 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.