Passed
Push — master ( 3f5412...28043d )
by Dmitrij
03:20
created

routes.php (1 issue)

1
<?php
2
3
use Psr\Http\Message\ServerRequestInterface;
4
use Psr\Http\Message\ResponseInterface;
5
6
/** @var \Slim\App $app */
7
$app->get('/', function (ServerRequestInterface $request, ResponseInterface $response, $args) {
0 ignored issues
show
The parameter $args is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

7
$app->get('/', function (ServerRequestInterface $request, ResponseInterface $response, /** @scrutinizer ignore-unused */ $args) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
8
    return $response->getBody()->write("Hello from hotrod-cli");
9
});