Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function show($keywordID, Carbon $date, $engine = 'google') : Collection |
||
19 | { |
||
20 | $response = $this->performQuery('serps/show', ['keyword_id' => $keywordID, 'engine' => $engine, 'date' => $date->toDateString()]); |
||
21 | |||
22 | return collect($response['Result'])->transform(function ($ranking, $key) { |
||
|
|||
23 | |||
24 | return new StatSerpItem([ |
||
25 | 'result_type' => $ranking['ResultType'], |
||
26 | 'rank' => $ranking['Rank'], |
||
27 | 'base_rank' => $ranking['BaseRank'], |
||
28 | 'url' => $ranking['Url'], |
||
29 | ]); |
||
30 | |||
31 | }); |
||
32 | |||
33 | } |
||
34 | |||
40 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.