Issues (10)

src/Utility/NavigationHelper.php (2 issues)

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
$path is of type null, thus it always evaluated to false.
Loading history...
20
    }
21
}
22