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