Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Arcanedev\Composer\Entities\PackageTraits; |
||
29 | 99 | private function mergeAutoload(RootPackageInterface $root) |
|
30 | { |
||
31 | 99 | if ( ! empty($autoload = $this->getPackage()->getAutoload())) { |
|
32 | 9 | static::unwrapIfNeeded($root, 'setAutoload') |
|
33 | 9 | ->setAutoload(array_merge_recursive( |
|
34 | 9 | $root->getAutoload(), Util::fixRelativePaths($this->getPath(), $autoload) |
|
35 | )); |
||
36 | } |
||
37 | 99 | } |
|
38 | } |
||
39 |