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