PathUtils   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 7
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A composePath() 0 9 1
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerChangelogs\Utils;
7
8
class PathUtils
9
{
10
    public function composePath()
11
    {
12
        $pathSegments = array_map(function ($item) {
13
            return rtrim($item, DIRECTORY_SEPARATOR);
14
        }, func_get_args());
15
16
        return implode(
17
            DIRECTORY_SEPARATOR,
18
            array_filter($pathSegments)
19
        );
20
    }
21
}
22