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