| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 3 | public function formatLocationsAsKml( Location ...$locations ): string { |
|
| 19 | 3 | $elements = $this->getKmlForLocations( $locations ); |
|
| 20 | |||
| 21 | // http://earth.google.com/kml/2.2 |
||
| 22 | return <<<EOT |
||
| 23 | <?xml version="1.0" encoding="UTF-8"?> |
||
| 24 | <kml xmlns="http://www.opengis.net/kml/2.2"> |
||
| 25 | <Document> |
||
| 26 | 3 | $elements |
|
| 27 | </Document> |
||
| 28 | </kml> |
||
| 29 | EOT; |
||
| 30 | } |
||
| 31 | |||
| 79 |