for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SchulzeFelix\Stat\Api;
use Carbon\Carbon;
use Illuminate\Support\Collection;
use SchulzeFelix\Stat\Objects\StatSerpItem;
class StatSerps extends BaseStat
{
/**
* @param $keywordID
* @param Carbon $date
* @param string $engine
* @return Collection
*/
public function show($keywordID, Carbon $date, $engine = 'google'): Collection
$response = $this->performQuery('serps/show', ['keyword_id' => $keywordID, 'engine' => $engine, 'date' => $date->toDateString()]);
return collect($response['Result'])->transform(function ($ranking, $key) {
$key
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new StatSerpItem([
'result_type' => $ranking['ResultType'],
'rank' => $ranking['Rank'],
'base_rank' => $ranking['BaseRank'],
'url' => $ranking['Url'],
]);
});
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.