BaseCommand   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 4
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A mapToPathname() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Christopher
5
 * Date: 01.03.2018
6
 * Time: 18:51.
7
 */
8
9
namespace Arubacao\AssetCdn\Commands;
10
11
use Illuminate\Console\Command;
12
use Symfony\Component\Finder\SplFileInfo;
13
14
abstract class BaseCommand extends Command
15
{
16
    /**
17
     * @param \Symfony\Component\Finder\SplFileInfo[] $files
18
     * @return array
19
     */
20
    protected function mapToPathname(array $files): array
21
    {
22
        return array_map(function (SplFileInfo $file) {
23
            return $file->getRelativePathname();
24
        }, $files);
25
    }
26
}
27