Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function normalize($target, $label, array $data, array $ownerConfig) |
||
23 | { |
||
24 | $source = $data[PatchDefinition::SOURCE]; |
||
25 | |||
26 | $pathInfo = parse_url($source); |
||
27 | $includesScheme = isset($pathInfo['scheme']) && $pathInfo['scheme']; |
||
28 | |||
29 | return array( |
||
30 | PatchDefinition::URL => $includesScheme ? $source : false, |
||
31 | PatchDefinition::CHECKSUM => $this->dataUtils->extractValue($data, 'sha1', '') ?: '' |
||
32 | ); |
||
35 |