| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2 |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | 7 | public function getSchemaData($url) |
|
| 10 | { |
||
| 11 | 7 | $arrContextOptions = [ |
|
| 12 | "ssl" => [ |
||
| 13 | "verify_peer" => false, |
||
| 14 | "verify_peer_name" => false, |
||
| 15 | ], |
||
| 16 | ]; |
||
| 17 | |||
| 18 | if ($data = file_get_contents(rawurldecode($url), false, stream_context_create($arrContextOptions))) { |
||
| 19 | return json_decode($data); |
||
| 20 | } |
||
| 21 | return false; |
||
| 22 | } |
||
| 23 | } |