Passed
Push — master ( 4f415b...b6b0b7 )
by Gabriel
03:01
created

BaseController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A generateViewPath() 0 3 1
A index() 0 3 1
1
<?php
2
3
namespace Nip\Controllers\Tests\Fixtures\Controllers;
4
5
use Nip\Controllers\Controller;
6
7
/**
8
 * Class BaseController
9
 * @package Nip\Controllers\Tests\Fixtures
10
 */
11
class BaseController extends Controller
12
{
13
    public function index()
14
    {
15
        return 'index';
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function generateViewPath()
22
    {
23
        return dirname(__DIR__) . '/views';
24
    }
25
}
26