Skip to content

Commit

Permalink
Fix spelling of capital
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Sep 14, 2017
1 parent 9bcedf3 commit 16c7317
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ object(RapidWeb\Countries\Country)#4869 (16) {
[0]=>
string(2) "44"
}
["captial"]=>
["capital"]=>
string(6) "London"
["region"]=>
string(6) "Europe"
Expand Down
2 changes: 1 addition & 1 deletion src/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Country
public $languageCodes;
public $currencyCodes;
public $callingCodes;
public $captial;
public $capital;
public $region;
public $subregion;
public $latitude;
Expand Down
2 changes: 1 addition & 1 deletion src/DataSources/MledozeCountriesJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function all()
$country->languageCodes = array_keys((array) $countryDataItem->languages);
$country->currencyCodes = $countryDataItem->currency;
$country->callingCodes = $countryDataItem->callingCode;
$country->captial = $countryDataItem->capital;
$country->capital = $countryDataItem->capital;
$country->region = $countryDataItem->region;
$country->subregion = $countryDataItem->subregion;
$country->latitude = isset($countryDataItem->latlng[0]) ? $countryDataItem->latlng[0] : null;
Expand Down

0 comments on commit 16c7317

Please sign in to comment.