FilePath::join()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
/*
3
 * This file is part of the Conveyor package.
4
 *
5
 * (c) Jeroen Fiege <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Webcreate\Conveyor\Util;
12
13
class FilePath
14
{
15 5
    public static function join()
16
    {
17 5
        $parts = func_get_args();
18
19 5
        $parts = array_filter($parts, 'trim');
20
21 5
        return implode(DIRECTORY_SEPARATOR, $parts);
22
    }
23
}
24