12-cactus/espinoso

View on GitHub

Showing 20 of 20 total issues

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

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

self::getUrl($url, $params, $status);
Severity: Minor
Found in app/Lib/CronicaGenerator.php by phpmd

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

$urlRedirect = $status['redirect_url'];
Severity: Minor
Found in app/Lib/CronicaGenerator.php by phpmd

Missing class import via use statement (line '18', column '21').
Open

$intg = new \InstagramAPI\Instagram(false, false);
Severity: Minor
Found in app/Handlers/InstagramHandler.php by phpmd

Remove error control operator '@' on line 260.
Open

protected function saveAndConvertAudio(string $fileId, StreamInterface $stream)
{
// Save as ogg (Telegram audio format)
// and convert it to wav (Voice format required)
Storage::put("{$fileId}.ogg", $stream->getContents());
Severity: Minor
Found in app/Espinoso.php by phpmd

Remove error control operator '@' on line 262.
Open

protected function saveAndConvertAudio(string $fileId, StreamInterface $stream)
{
// Save as ogg (Telegram audio format)
// and convert it to wav (Voice format required)
Storage::put("{$fileId}.ogg", $stream->getContents());
Severity: Minor
Found in app/Espinoso.php by phpmd

Remove error control operator '@' on line 263.
Open

protected function saveAndConvertAudio(string $fileId, StreamInterface $stream)
{
// Save as ogg (Telegram audio format)
// and convert it to wav (Voice format required)
Storage::put("{$fileId}.ogg", $stream->getContents());
Severity: Minor
Found in app/Espinoso.php by phpmd

Avoid unused parameters such as '$format'.
Open

public function sendGifToCactus(string $gif, string $format = 'Markdown', array $options = []): void
Severity: Minor
Found in app/Espinoso.php by phpmd

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

Line exceeds 120 characters; contains 136 characters
Open

protected $pattern = "(\b(clima)\b)\s+(?'p'(este|el)\s+)?(?'day'(lunes|martes|mi(e|é)rcoles|jueves|viernes|s(a|á)bado|domingo))$";

Line exceeds 120 characters; contains 178 characters
Open

[-z:ZOOM -s:SIZE -c:COLOR -t:MAPTYPE ] dirección.\nZOOM es un entero del 1-20\nSIZE es una resolución (600x300)\nMAPTYPE es un tipo de mapa de google, por defecto roadmap";

Inline control structures are not allowed
Open

if (!function_exists('curl_init'))
Severity: Minor
Found in app/Lib/CronicaGenerator.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 10
Open

});

Expected 1 newline at end of file; 0 found
Open

}

Space before opening parenthesis of function call prohibited
Open

if (count ($items) < $positionItem-1) {
Severity: Minor
Found in app/Handlers/TagsHandler.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

$urlNameMovie = str_replace (' ', '-', $urlNameMovie);

Closing brace indented incorrectly; expected 8 spaces, found 10
Open

});

FIXME found
Open

// FIXME: it would be better to create an ArithmeticHandler to handle operations
Severity: Minor
Found in resources/lang/es/brain.php by fixme
Severity
Category
Status
Source
Language