Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Arcanedev\Composer\Utilities; |
||
25 | 9 | public static function fixRelativePaths($base, array $paths) |
|
26 | { |
||
27 | 9 | $base = dirname($base); |
|
28 | 9 | $base = ($base === '.') ? '' : "{$base}/"; |
|
29 | |||
30 | array_walk_recursive($paths, function (&$path) use ($base) { |
||
31 | 9 | $path = "{$base}{$path}"; |
|
32 | 9 | }); |
|
33 | |||
34 | 9 | return $paths; |
|
35 | } |
||
36 | } |
||
37 |