| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function normalize($target, $label, array $data, array $ownerConfig) |
||
| 13 | { |
||
| 14 | $source = $data[PatchDefinition::SOURCE]; |
||
| 15 | $flag = '#' . PatchDefinition::SKIP; |
||
| 16 | |||
| 17 | if (strstr($source, $flag) !== $flag) { |
||
| 18 | return array( |
||
| 19 | PatchDefinition::SKIP => isset($data[PatchDefinition::SKIP]) |
||
| 20 | ? $data[PatchDefinition::SKIP] |
||
| 21 | : false |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | return array( |
||
| 26 | PatchDefinition::SOURCE => substr($source, 0, strrpos($source, $flag)), |
||
| 27 | PatchDefinition::SKIP => true |
||
| 28 | ); |
||
| 31 |