12-cactus/espinoso

View on GitHub
app/Handlers/GoogleInfoBoxHandler.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 4 of 4 total issues

The method getText() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
Open

private function getText(Crawler $node)
{
return $node->filter('._o0d')->each(function ($div) {
$left = $right = "";
 
 
Severity: Minor
Found in app/Handlers/GoogleInfoBoxHandler.php by phpmd

Avoid using undefined variables such as '$result' which will lead to PHP notices.
Open

$result['images'] = $this->getImages($block);
Severity: Minor
Found in app/Handlers/GoogleInfoBoxHandler.php by phpmd

Avoid using undefined variables such as '$result' which will lead to PHP notices.
Open

return $result;
Severity: Minor
Found in app/Handlers/GoogleInfoBoxHandler.php by phpmd

Avoid using undefined variables such as '$result' which will lead to PHP notices.
Open

$result['message'] = implode("\n", $this->tuning($message));
Severity: Minor
Found in app/Handlers/GoogleInfoBoxHandler.php by phpmd
Category
Status