Completed
Push — master ( 687c55...3f3873 )
by Dmitrij
9s
created

anonymous()

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
nc 1
nop 3
dl 0
loc 2
c 0
b 0
f 0
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
Unused Code introduced by
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
});