| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 2 | private function getMetarDataString() |
|
| 34 | { |
||
| 35 | |||
| 36 | 2 | $data = $this->getMetarAPIResponse(str_replace('{{_ICAO_}}', $this->icao, $this->serviceUrl)); |
|
| 37 | |||
| 38 | // The NOAA web service provides a human readable timestamp of when the report was last generated but we don't care about that so we'll jump to the next line (the actual METAR string) |
||
| 39 | 2 | $lines = explode($this->icao, $data); |
|
| 40 | 2 | return trim($this->icao . $lines[1]); |
|
| 41 | } |
||
| 48 |