Passed
Push — master ( 8131e7...f70e95 )
by Egar
02:46
created
src/Objects/Map.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	 */
60 60
 	public function __toString () : string
61 61
 	{
62
-		return implode( ",", $this->map );
62
+		return implode ( ",", $this->map );
63 63
 	}
64 64
 
65 65
 	/**
Please login to merge, or discard this patch.
src/Endpoints/Relation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
 	 */
64 64
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
65 65
 	{
66
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
66
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
67 67
 
68
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
68
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
69 69
 
70 70
 		$this->builder = new MultipartStreamBuilder ();
71 71
 	}
Please login to merge, or discard this patch.
src/Endpoints/Location.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
 	 */
43 43
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
44 44
 	{
45
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
45
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
46 46
 
47
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
47
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
48 48
 	}
49 49
 
50 50
 	/**
Please login to merge, or discard this patch.
src/Endpoints/Login.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,9 +75,9 @@
 block discarded – undo
75 75
 
76 76
 		$this->appScope = ( string ) $appScope;
77 77
 
78
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
78
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
79 79
 
80
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
80
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
81 81
 	}
82 82
 
83 83
 	/**
Please login to merge, or discard this patch.
src/Endpoints/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
44 44
 	{
45
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
45
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
46 46
 
47
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
47
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
48 48
 	}
49 49
 
50 50
 	/**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 			throw new UserException ( "Current param isn't instance of UserId." );
103 103
 		}
104 104
 
105
-		$uri = sprintf ( "https://api.instagram.com/v1/users/%s/?access_token=%s", ( string ) $userId->__toInt(), $this->accessToken );
105
+		$uri = sprintf ( "https://api.instagram.com/v1/users/%s/?access_token=%s", ( string ) $userId->__toInt (), $this->accessToken );
106 106
 
107 107
 		$request = $this->requestFactory->createRequest ( "GET", $uri );
108 108
 
Please login to merge, or discard this patch.
src/Endpoints/Comment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
 	 */
64 64
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
65 65
 	{
66
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
66
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
67 67
 
68
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
68
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
69 69
 
70 70
 		$this->builder = new MultipartStreamBuilder ();
71 71
 	}
Please login to merge, or discard this patch.
src/Endpoints/Like.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
 	 */
64 64
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
65 65
 	{
66
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
66
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
67 67
 
68
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
68
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
69 69
 
70 70
 		$this->builder = new MultipartStreamBuilder ();
71 71
 	}
Please login to merge, or discard this patch.
src/Endpoints/Tag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
 	 */
43 43
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
44 44
 	{
45
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
45
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
46 46
 
47
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
47
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
48 48
 	}
49 49
 
50 50
 	/**
Please login to merge, or discard this patch.
src/Endpoints/Media.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
 	 */
43 43
 	public function __construct ( HttpClient $httpClient = null, RequestFactory $requestFactory = null )
44 44
 	{
45
-		$this->httpClient = $httpClient ?: HttpClientDiscovery::find ();
45
+		$this->httpClient = $httpClient ? : HttpClientDiscovery::find ();
46 46
 
47
-		$this->requestFactory = $requestFactory ?: MessageFactoryDiscovery::find ();
47
+		$this->requestFactory = $requestFactory ? : MessageFactoryDiscovery::find ();
48 48
 	}
49 49
 
50 50
 	/**
Please login to merge, or discard this patch.