Completed
Push — geonames-geocoder ( 9fbfea )
by Jeroen De
03:58
created
src/Geocoders/GeoNamesGeocoder.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.