@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $keys = ['startDate', 'endDate']; |
38 | 38 | $params = array_filter($params); |
39 | 39 | foreach ($keys as $key) { |
40 | - if (! array_key_exists($key, $params)) { |
|
40 | + if (!array_key_exists($key, $params)) { |
|
41 | 41 | throw new InvalidArgumentException("Missing configuration key [$key]."); |
42 | 42 | } |
43 | 43 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $keys = ['startDate', 'endDate', 'transactionStatus']; |
60 | 60 | $params = array_filter($params); |
61 | 61 | foreach ($keys as $key) { |
62 | - if (! array_key_exists($key, $params)) { |
|
62 | + if (!array_key_exists($key, $params)) { |
|
63 | 63 | throw new InvalidArgumentException("Missing configuration key [$key]."); |
64 | 64 | } |
65 | 65 | } |
@@ -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 | ]); |