Test Failed
Push — master ( a6b51e...5fffdb )
by Gabriel
08:05
created

PathHelper::keys()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 0
cts 5
cp 0
crap 2
1
<?php
2
3
namespace ByTIC\Hello\Utility;
4
5
/**
6
 * Class PathHelper
7
 * @package ByTIC\Hello\Utility
8
 */
9
class PathHelper
10
{
11
    /**
12
     * @param null $path
13
     * @return string
14
     */
15
    public static function keys($path = null)
16
    {
17
        return dirname(dirname(__DIR__))
18
            . DIRECTORY_SEPARATOR . 'resources'
19
            . DIRECTORY_SEPARATOR . 'keys'
20
            . DIRECTORY_SEPARATOR . $path;
21
    }
22
}