@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | public function __construct($config = null) |
| 20 | 20 | { |
| 21 | - if(is_array($config)){ |
|
| 21 | + if (is_array($config)) { |
|
| 22 | 22 | extract($config); |
| 23 | 23 | $this->setConfig($client_id, $client_secret, $basic); |
| 24 | 24 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | // URI: /security/oauth/token?grant_type=client_credentials&client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET] |
| 56 | 56 | //Header: "Authorization" -> "[BASIC]" |
| 57 | 57 | |
| 58 | - public function setClient(){ |
|
| 58 | + public function setClient() { |
|
| 59 | 59 | $client = new Client([ |
| 60 | 60 | 'base_uri' => self::ENDPOINT, |
| 61 | 61 | ]); |