| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function process(array $patches, array $packagesByName) |
||
| 18 | { |
||
| 19 | $allPatches = array(); |
||
| 20 | |||
| 21 | foreach ($patches as $patchTarget => $packagePatches) { |
||
| 22 | $allPatches[$patchTarget] = array(); |
||
| 23 | |||
| 24 | foreach ($packagePatches as $info) { |
||
| 25 | $allPatches[$patchTarget][$info[PatchDefinition::SOURCE]] = $info; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | return array_filter($allPatches); |
||
| 30 | } |
||
| 32 |