Passed
Branch master (bd395e)
by Egar
04:00
created
src/Objects/ShortCode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param string $sc
21 21
 	 */
22
-	public function __construct ( string $sc )
22
+	public function __construct(string $sc)
23 23
 	{
24 24
 		$this->shortCode = $sc;
25 25
 	}
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return string
29 29
 	 */
30
-	public function __toString () : string
30
+	public function __toString() : string
31 31
 	{
32 32
 		return $this->shortCode;
33 33
 	}
Please login to merge, or discard this patch.
src/Objects/AccessToken.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param string $at
21 21
 	 */
22
-	public function __construct ( string $at )
22
+	public function __construct(string $at)
23 23
 	{
24 24
 		$this->accessToken = $at;
25 25
 	}
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return string
29 29
 	 */
30
-	public function __toString () : string
30
+	public function __toString() : string
31 31
 	{
32 32
 		return $this->accessToken;
33 33
 	}
Please login to merge, or discard this patch.
src/Objects/MediaId.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param int $mid
21 21
 	 */
22
-	public function __construct ( int $mid )
22
+	public function __construct(int $mid)
23 23
 	{
24 24
 		$this->mediaId = $mid;
25 25
 	}
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return int
29 29
 	 */
30
-	public function __toInt () : int
30
+	public function __toInt() : int
31 31
 	{
32 32
 		return $this->mediaId;
33 33
 	}
Please login to merge, or discard this patch.
src/Objects/CommentId.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param int $cid
21 21
 	 */
22
-	public function __construct ( int $cid )
22
+	public function __construct(int $cid)
23 23
 	{
24 24
 		$this->commentId = $cid;
25 25
 	}
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return int
29 29
 	 */
30
-	public function __toInt () : int
30
+	public function __toInt() : int
31 31
 	{
32 32
 		return $this->commentId;
33 33
 	}
Please login to merge, or discard this patch.
src/Objects/Name.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param string $n
21 21
 	 */
22
-	public function __construct ( string $n )
22
+	public function __construct(string $n)
23 23
 	{
24 24
 		$this->mediaId = $n;
25 25
 	}
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return string
29 29
 	 */
30
-	public function __toString () : string
30
+	public function __toString() : string
31 31
 	{
32 32
 		return $this->name;
33 33
 	}
Please login to merge, or discard this patch.
src/Objects/LocationId.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param int $lid
21 21
 	 */
22
-	public function __construct ( int $lid )
22
+	public function __construct(int $lid)
23 23
 	{
24 24
 		$this->locationId = $lid;
25 25
 	}
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return int
29 29
 	 */
30
-	public function __toInt () : int
30
+	public function __toInt() : int
31 31
 	{
32 32
 		return $this->locationId;
33 33
 	}
34 34
 
35
-	public function __toString () : string
35
+	public function __toString() : string
36 36
 	{
37 37
 		return ( string ) $this->locationId;
38 38
 	}
Please login to merge, or discard this patch.
src/Objects/Action.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 *
30 30
 	 * @param int $ac
31 31
 	 */
32
-	public function __construct ( int $ac )
32
+	public function __construct(int $ac)
33 33
 	{
34 34
 		$this->action = $this->listAction[ $ac ];
35 35
 	}
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * @return int
39 39
 	 */
40
-	public function __toInt () : int
40
+	public function __toInt() : int
41 41
 	{
42
-		if ( is_string ( $this->mediaId ) )
42
+		if (is_string($this->mediaId))
43 43
 		{
44
-			return array_search ( $this->mediaId, $this->listAction );
44
+			return array_search($this->mediaId, $this->listAction);
45 45
 		}
46 46
 
47 47
 		return $this->mediaId;
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * @return string
52 52
 	 */
53
-	public function __toString () : string
53
+	public function __toString() : string
54 54
 	{
55
-		if ( is_int ( $this->mediaId ) )
55
+		if (is_int($this->mediaId))
56 56
 		{
57 57
 			return $this->listAction[ $this->mediaId ];
58 58
 		}
Please login to merge, or discard this patch.
src/Objects/TagName.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 *
20 20
 	 * @param string $tn
21 21
 	 */
22
-	public function __construct ( string $tn )
22
+	public function __construct(string $tn)
23 23
 	{
24 24
 		$this->tagName = $tn;
25 25
 	}
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	/**
28 28
 	 * @return string
29 29
 	 */
30
-	public function __toString () : string
30
+	public function __toString() : string
31 31
 	{
32 32
 		return $this->tagName;
33 33
 	}
Please login to merge, or discard this patch.
src/Objects/Map.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare ( strict_types = 1 );
3
+declare (strict_types = 1);
4 4
 
5 5
 namespace Ch0c01dxyz\InstaToken\Objects;
6 6
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * @param float $lng
22 22
 	 * @param float $distance
23 23
 	 */
24
-	public function __construct ( float $lat, float $lng, int $distance )
24
+	public function __construct(float $lat, float $lng, int $distance)
25 25
 	{
26 26
 		$this->map = [
27 27
 			"lat" => ( float ) $lat,
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	/**
34 34
 	 * @return float Latitude
35 35
 	 */
36
-	public function getLat () : float
36
+	public function getLat() : float
37 37
 	{
38 38
 		return $this->map[ "lat" ];
39 39
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * @return float Longitude
43 43
 	 */
44
-	public function getLng () : float
44
+	public function getLng() : float
45 45
 	{
46 46
 		return $this->map[ "lng" ];
47 47
 	}
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	/**
50 50
 	 * @return int Distance
51 51
 	 */
52
-	public function getDistance () : int
52
+	public function getDistance() : int
53 53
 	{
54 54
 		return $this->map[ "distance" ];
55 55
 	}
@@ -57,15 +57,15 @@  discard block
 block discarded – undo
57 57
 	/**
58 58
 	 * @return string
59 59
 	 */
60
-	public function __toString () : string
60
+	public function __toString() : string
61 61
 	{
62
-		return implode( ",", $this->map );
62
+		return implode(",", $this->map);
63 63
 	}
64 64
 
65 65
 	/**
66 66
 	 * @return array
67 67
 	 */
68
-	public function __toArray () : array
68
+	public function __toArray() : array
69 69
 	{
70 70
 		return $this->map;
71 71
 	}
Please login to merge, or discard this patch.