@@ -13,8 +13,8 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public function __construct($league) |
| 15 | 15 | { |
| 16 | - $this->api = new ClashOfClans(); |
|
| 17 | - if(is_object($league)) |
|
| 16 | + $this->api = new ClashOfClans(); |
|
| 17 | + if (is_object($league)) |
|
| 18 | 18 | { |
| 19 | 19 | $this->league = $league; |
| 20 | 20 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function getLeague() |
| 34 | 34 | { |
| 35 | - if($this->league == NULL) |
|
| 35 | + if ($this->league == NULL) |
|
| 36 | 36 | { |
| 37 | 37 | foreach ($this->api->getLeagueList()->items as $league) |
| 38 | 38 | { |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function __construct($location) |
| 15 | 15 | { |
| 16 | 16 | $this->api = new ClashOfClans(); |
| 17 | - if(is_object($location)) |
|
| 17 | + if (is_object($location)) |
|
| 18 | 18 | { |
| 19 | 19 | $this->location = $location; |
| 20 | 20 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | protected function getLocation() |
| 34 | 34 | { |
| 35 | - if($this->location == NULL) |
|
| 35 | + if ($this->location == NULL) |
|
| 36 | 36 | { |
| 37 | 37 | foreach ($this->api->getLocationList()->items as $location) |
| 38 | 38 | { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | */ |
| 128 | 128 | public function getCountryCode() |
| 129 | 129 | { |
| 130 | - if($this->isCountry()) |
|
| 130 | + if ($this->isCountry()) |
|
| 131 | 131 | { |
| 132 | 132 | return $this->getLocation()->countryCode; |
| 133 | 133 | } |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | if(is_object($location)) |
| 18 | 18 | { |
| 19 | 19 | $this->location = $location; |
| 20 | - } |
|
| 21 | - else |
|
| 20 | + } else |
|
| 22 | 21 | { |
| 23 | 22 | $this->locationId = $location; |
| 24 | 23 | $this->getLocation(); |
@@ -43,8 +42,7 @@ discard block |
||
| 43 | 42 | } |
| 44 | 43 | } |
| 45 | 44 | return 0; |
| 46 | - } |
|
| 47 | - else |
|
| 45 | + } else |
|
| 48 | 46 | { |
| 49 | 47 | return $this->location; |
| 50 | 48 | } |
@@ -130,8 +128,7 @@ discard block |
||
| 130 | 128 | if($this->isCountry()) |
| 131 | 129 | { |
| 132 | 130 | return $this->getLocation()->countryCode; |
| 133 | - } |
|
| 134 | - else |
|
| 131 | + } else |
|
| 135 | 132 | { |
| 136 | 133 | return "nA"; |
| 137 | 134 | } |
@@ -56,9 +56,9 @@ |
||
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * Gets the members league |
| 59 | - * |
|
| 60 | - * @return stdClass |
|
| 61 | - */ |
|
| 59 | + * |
|
| 60 | + * @return stdClass |
|
| 61 | + */ |
|
| 62 | 62 | public function getLeague() |
| 63 | 63 | { |
| 64 | 64 | return $this->memberObj->league; |