Completed
Push — master ( 54206c...552d03 )
by Derek Stephen
03:03
created

src/App/Controller/IndexController.php (4 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace App\Controller;
4
5
use Bone\Mvc\Controller;
6
use Laminas\Diactoros\Response\HtmlResponse;
7
use Psr\Http\Message\ResponseInterface;
8
use Psr\Http\Message\ServerRequestInterface;
9
10
/**
11
 * Class IndexController
12
 *
13
 * If you need to create a constructor, edit the package to set up automatically via dependency injection
14
 *
15
 * @package App\Controller
16
 */
17
class IndexController extends Controller
18
{
19
    /**
20
     * @param ServerRequestInterface $request
21
     * @param array $args
22
     * @return ResponseInterface
23
     */
24 1
    public function indexAction(ServerRequestInterface $request, array $args) : ResponseInterface
0 ignored issues
show
The parameter $request is not used and could be removed.

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

Loading history...
The parameter $args is not used and could be removed.

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

Loading history...
25
    {
26 1
        $body = $this->view->render('index/index');
27
28 1
        return new HtmlResponse($body);
29
    }
30
31
    /**
32
     * @param ServerRequestInterface $request
33
     * @param array $args
34
     * @return ResponseInterface
35
     */
36 1
    public function learnAction(ServerRequestInterface $request, array $args) : ResponseInterface
0 ignored issues
show
The parameter $request is not used and could be removed.

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

Loading history...
The parameter $args is not used and could be removed.

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

Loading history...
37
    {
38 1
        $body = $this->view->render('index/learn');
39
40 1
        return new HtmlResponse($body);
41
    }
42
}
43