@@ -17,6 +17,9 @@ discard block |
||
| 17 | 17 | private $fileFetcher; |
| 18 | 18 | private $geoNamesUser; |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $geoNamesUser |
|
| 22 | + */ |
|
| 20 | 23 | public function __construct( FileFetcher $fileFetcher, $geoNamesUser ) { |
| 21 | 24 | $this->fileFetcher = $fileFetcher; |
| 22 | 25 | $this->geoNamesUser = $geoNamesUser; |
@@ -57,6 +60,10 @@ discard block |
||
| 57 | 60 | . urlencode( $this->geoNamesUser ); |
| 58 | 61 | } |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $xml |
|
| 65 | + * @param string $tagName |
|
| 66 | + */ |
|
| 60 | 67 | private function getXmlElementValue( $xml, $tagName ) { |
| 61 | 68 | $match = []; |
| 62 | 69 | preg_match( "/<$tagName>(.*?)<\/$tagName>/", $xml, $match ); |