Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function load($path) |
||
|
|||
36 | { |
||
37 | if (array_key_exists($path, $this->mappings)) { |
||
38 | $content = file_get_contents($this->mappings[$path]); |
||
39 | |||
40 | return json_decode($content); |
||
41 | } |
||
42 | |||
43 | throw SchemaLoadingException::notFound(sprintf('The schema "%s" is not supported.', $path)); |
||
44 | } |
||
45 | } |
||
46 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.