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