FrontendController::renderTemplate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 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