@@ -59,7 +59,7 @@ |
||
| 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 | /** |
@@ -63,9 +63,9 @@ |
||
| 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 | } |
@@ -42,9 +42,9 @@ |
||
| 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 | /** |
@@ -75,9 +75,9 @@ |
||
| 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 | /** |
@@ -42,9 +42,9 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -63,9 +63,9 @@ |
||
| 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 | } |
@@ -63,9 +63,9 @@ |
||
| 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 | } |
@@ -42,9 +42,9 @@ |
||
| 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 | /** |
@@ -42,9 +42,9 @@ |
||
| 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 | /** |