Completed
Branch master (1fd54f)
by Wesley
06:35
created
Category
src/Support/HotConnect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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']];
Please login to merge, or discard this patch.
src/Hotmart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/HotmartServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.