FileHelper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A adjustPath() 0 17 2
1
<?php
2
3
namespace Padosoft\Laravel\Google\StructuredDataTestingTool;
4
5
6
class FileHelper
7
{
8
    public static function adjustPath($path)
9
    {
10
11
        if ($path == '') {
12
            return array();
13
        }
14
15
        $p = explode(",", str_replace('\\', '/', $path));
16
17
        $pathList = array_map(function ($item) {
18
            return str_finish($item, '/');
19
        },
20
            $p
21
        );
22
23
        return $pathList;
24
    }
25
}
26