FrontendController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A renderTemplate() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: famoser
5
 * Date: 07.11.2016
6
 * Time: 11:26
7
 */
8
9
namespace Famoser\XKCDCache\Controllers\Base;
10
11
12
use Slim\Http\Response;
13
14
/**
15
 * a frontend controller displays information in the web application.
16
 * @package Famoser\XKCDCache\Controllers\Base
17
 */
18
class FrontendController extends BaseController
19
{
20
    /**
21
     * @param Response $response
22
     * @param string $path
23
     * @param $args
24
     * @return mixed
25
     */
26 6
    protected function renderTemplate(Response $response, $path, $args)
27
    {
28 6
        return $this->getView()->render($response, $path . '.html.twig', $args);
29
    }
30
}
31