Conditions | 3 |
Paths | 3 |
Total Lines | 24 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
39 | private static function gatherMapping() |
||
40 | { |
||
41 | $map = []; |
||
42 | /** @var Package $package */ |
||
43 | foreach (packages() as $package) { |
||
44 | $config = $package->getConfig('extra'); |
||
45 | $mapping = get_in( |
||
46 | $config, |
||
47 | [ |
||
48 | 'api-clients', |
||
49 | 'command-bus' |
||
50 | ], |
||
51 | false |
||
52 | ); |
||
53 | |||
54 | if ($mapping === false) { |
||
55 | continue; |
||
56 | } |
||
57 | |||
58 | $map += Mapper::map($package->getPath($mapping['path']), $mapping['namespace']); |
||
59 | } |
||
60 | |||
61 | return $map; |
||
62 | } |
||
63 | } |
||
64 |