Test Setup Failed
Push — master ( 67f9ac...9fa851 )
by
unknown
03:50 queued 44s
created
src/PaystackServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     {
15 15
         if ($this->app->runningInConsole()) {
16 16
             $this->publishes([
17
-                __DIR__.'/../config/config.php' => config_path('paystack.php'),
17
+                __DIR__ . '/../config/config.php' => config_path('paystack.php'),
18 18
             ], 'config');
19 19
         }
20 20
         $this->validator();
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
     public function register(): void
27 27
     {
28 28
         // Automatically apply the package configuration
29
-        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'paystack');
29
+        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'paystack');
30 30
 
31 31
         // Register the main class to use with the facade
32
-        $this->app->bind('paystack', function () {
32
+        $this->app->bind('paystack', function() {
33 33
 
34 34
             //validate required credentials
35 35
             $config = config('paystack');
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 
44 44
     private function validator()
45 45
     {
46
-        Validator::macro('required_string', function ($attribute, $value, $arguments) {
47
-            return is_string($value) && ! empty($value);
46
+        Validator::macro('required_string', function($attribute, $value, $arguments) {
47
+            return is_string($value) && !empty($value);
48 48
         });
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Paystack.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@
 block discarded – undo
59 59
     public function generateReference(?string $transactionPrefix = null): string
60 60
     {
61 61
         if ($transactionPrefix) {
62
-            return $transactionPrefix.'_'.uniqid(time());
62
+            return $transactionPrefix . '_' . uniqid(time());
63 63
         }
64 64
 
65
-        return 'PK_'.uniqid(time());
65
+        return 'PK_' . uniqid(time());
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.