NavigationHelper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A view() 0 5 2
1
<?php
2
3
namespace ByTIC\Navigation\Utility;
4
5
/**
6
 * Class NavigationHelper
7
 * @package ByTIC\Navigation\Utility
8
 */
9
class NavigationHelper
10
{
11
    /**
12
     * @param null $path
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $path is correct as it would always require null to be passed?
Loading history...
13
     * @return string
14
     */
15 1
    public static function view($path = null)
16
    {
17 1
        return dirname(dirname(__DIR__))
18 1
            . DIRECTORY_SEPARATOR . 'views'
19 1
            . ($path ? $path : null);
0 ignored issues
show
introduced by
$path is of type null, thus it always evaluated to false.
Loading history...
20
    }
21
}
22