@@ -28,21 +28,21 @@ |
||
28 | 28 | |
29 | 29 | class App { |
30 | 30 | |
31 | - private $url; |
|
31 | + private $url; |
|
32 | 32 | |
33 | - public function __construct (ApiInterface $api) |
|
34 | - { |
|
35 | - $this->api = $api; |
|
36 | - $this->url = 'https://api-ssl.bitly.com/v4/apps'; |
|
37 | - } |
|
33 | + public function __construct (ApiInterface $api) |
|
34 | + { |
|
35 | + $this->api = $api; |
|
36 | + $this->url = 'https://api-ssl.bitly.com/v4/apps'; |
|
37 | + } |
|
38 | 38 | |
39 | - /* |
|
39 | + /* |
|
40 | 40 | Retrieve OAuth App |
41 | 41 | https://dev.bitly.com/v4/#operation/getOAuthApp |
42 | 42 | */ |
43 | - public function getOAuthApp(string $client_id) |
|
44 | - { |
|
45 | - return $this->api->get($this->url . '/'.$client_id); |
|
46 | - } |
|
43 | + public function getOAuthApp(string $client_id) |
|
44 | + { |
|
45 | + return $this->api->get($this->url . '/'.$client_id); |
|
46 | + } |
|
47 | 47 | |
48 | 48 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | private $url; |
32 | 32 | |
33 | - public function __construct (ApiInterface $api) |
|
33 | + public function __construct(ApiInterface $api) |
|
34 | 34 | { |
35 | 35 | $this->api = $api; |
36 | 36 | $this->url = 'https://api-ssl.bitly.com/v4/apps'; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function getOAuthApp(string $client_id) |
44 | 44 | { |
45 | - return $this->api->get($this->url . '/'.$client_id); |
|
45 | + return $this->api->get($this->url.'/'.$client_id); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | } |