Passed
Push — master ( 4dc177...3651e5 )
by Nico
02:23
created
ClashAPI/League.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			{
Please login to merge, or discard this patch.
ClashAPI/Location.class.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
ClashAPI/Member.class.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.