Showing 3 of 4 total issues
Method create
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(string $handlerName): AbstractHandler
{
switch ($handlerName) {
case EmailHandler::class:
return new EmailHandler(
Method processSearchTerm
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function processSearchTerm(SearchTerm $searchTerm): array
{
return [
'IP Address Query' => [
'example' => 'https://cli.fyi/8.8.8.8'
Method getExtractedValues
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getExtractedValues(): array
{
if ($this->extractedData::check($this->extractedData->getResponse())) {
return [
'title' => $this->extractedData->title,