Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
35 | public function asPackageArray() |
||
36 | { |
||
37 | $path = $this->file; |
||
38 | if (!LibFs::isReadableFile($path)) { |
||
39 | throw new \InvalidArgumentException( |
||
40 | sprintf("not a readable file: '%s'", $path) |
||
41 | ); |
||
42 | } |
||
43 | $package = Yaml::buffer(file_get_contents($path)); |
||
44 | |||
45 | $this->resolveUri($package['uri']); |
||
46 | |||
47 | return $package; |
||
48 | } |
||
76 |