| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function process($label, array $data) |
||
| 23 | { |
||
| 24 | $items = array(); |
||
| 25 | |||
| 26 | foreach ($data as $constraint => $source) { |
||
| 27 | if (!$this->valueAnalyser->isConstraint($constraint)) { |
||
| 28 | continue; |
||
| 29 | } |
||
| 30 | |||
| 31 | $items[] = array( |
||
| 32 | $label, |
||
| 33 | array( |
||
| 34 | PatchDefinition::VERSION => $constraint, |
||
| 35 | PatchDefinition::SOURCE => $source |
||
| 36 | ) |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $items; |
||
| 41 | } |
||
| 43 |