@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $params = ['grant_type' => 'client_credentials']; |
| 54 | 54 | |
| 55 | 55 | foreach ($keys as $key) { |
| 56 | - if (! array_key_exists($key, $config)) { |
|
| 56 | + if (!array_key_exists($key, $config)) { |
|
| 57 | 57 | throw new InvalidArgumentException("Missing configuration key [$key]."); |
| 58 | 58 | } else { |
| 59 | 59 | $params[$key] = $config[$key]; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | private function getBasicToken() |
| 68 | 68 | { |
| 69 | 69 | $config = $this->getConfigFile(); |
| 70 | - if (! array_key_exists('basic_token', $config)) { |
|
| 70 | + if (!array_key_exists('basic_token', $config)) { |
|
| 71 | 71 | throw new InvalidArgumentException('Missing configuration key basic_token.'); |
| 72 | 72 | } |
| 73 | 73 | $this->config['tokens']['basic_token']['headers'] = ['Authorization' => 'Basic '.$config['basic_token']]; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->mergeConfigFrom(__DIR__.'/../config/hotmart.php', 'hotmart'); |
| 35 | 35 | |
| 36 | 36 | // Register the service the package provides. |
| 37 | - $this->app->singleton('hotmart', function ($app) { |
|
| 37 | + $this->app->singleton('hotmart', function($app) { |
|
| 38 | 38 | return new Hotmart; |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -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 | } |