Completed
Push — master ( 5bfd33...372d25 )
by Wesley
03:23
created
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/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.
src/Hotmart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.