Passed
Branch master (cd7bd8)
by Kelvin
03:01
created
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
     return KiplingKelvin\ChpterLaravelSdk\Chpter::mpesaPayment($customer, $products, $amount, $callback_details);
6 6
 }
7 7
 
8
-function chpter_card_payment($customer, $products, $amount,$card_details, $callback_details)
8
+function chpter_card_payment($customer, $products, $amount, $card_details, $callback_details)
9 9
 {
10
-    return KiplingKelvin\ChpterLaravelSdk\Chpter::cardPayment($customer, $products, $amount,$card_details, $callback_details);
10
+    return KiplingKelvin\ChpterLaravelSdk\Chpter::cardPayment($customer, $products, $amount, $card_details, $callback_details);
11 11
 }
12 12
 
13 13
 // function chpter_mobile_payouts($customer, $products, $amount, $callback_details)
Please login to merge, or discard this patch.
src/ChpterServiceProvider.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
         if ($this->app->runningInConsole()) {
23 23
             //publish the config files
24 24
             $this->publishes([
25
-              __DIR__.'/../config/chpter.php' => config_path('chpter.php'),
26
-          ], 'chpter-config');
25
+                __DIR__.'/../config/chpter.php' => config_path('chpter.php'),
26
+            ], 'chpter-config');
27 27
 
28 28
             // Register commands
29 29
             $this->commands([
30 30
             InstallChpter::class,
31
-          ]);
31
+            ]);
32 32
         }
33 33
     }
34 34
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function register()
41 41
     {
42 42
 
43
-        $this->app->singleton(Chpter::class, function () {
43
+        $this->app->singleton(Chpter::class, function() {
44 44
             return new Chpter();
45 45
         });
46 46
     }
Please login to merge, or discard this patch.
src/Chpter.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
     public function __construct()
27 27
     {
28 28
         //Base URL for the API endpoints. This is basically the 'common' part of the API endpoints
29
-         $this->chpter_payment_url = config('chpter.payments_url'); 	
30
-         $this->token = config('chpter.chpter_token'); 
31
-         $this->domain =config('chpter.domain');
29
+            $this->chpter_payment_url = config('chpter.payments_url'); 	
30
+            $this->token = config('chpter.chpter_token'); 
31
+            $this->domain =config('chpter.domain');
32 32
     }
33 33
 
34 34
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
         //Base URL for the API endpoints. This is basically the 'common' part of the API endpoints
29 29
          $this->chpter_payment_url = config('chpter.payments_url'); 	
30 30
          $this->token = config('chpter.chpter_token'); 
31
-         $this->domain =config('chpter.domain');
31
+         $this->domain = config('chpter.domain');
32 32
     }
33 33
 
34 34
 
35 35
     public function mpesaPayment($customer, $products, $amount, $callback_details)
36 36
     {
37 37
 
38
-        $client  = new Client();
38
+        $client = new Client();
39 39
 
40 40
         $requestBody = array( 
41 41
             "customer_details"=> $customer,
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function cardPayment($customer, $products, $amount, $card_details, $callback_details)
64 64
     {
65 65
 
66
-        $client  = new Client();
66
+        $client = new Client();
67 67
         
68 68
         $requestBody = array( 
69 69
             "customer_details"=> $customer,
Please login to merge, or discard this patch.
src/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-Route::get('demo', function () {
4
+Route::get('demo', function() {
5 5
     return "This is amazing right (:";
6 6
 });
Please login to merge, or discard this patch.
src/Console/InstallChpter.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
         $this->info('Publishing Configuration...');
17 17
 
18 18
         $this->call('vendor:publish', [
19
-      '--provider' => "KiplingKelvin\ChpterLaravelSdk\ChpterServiceProvider",
20
-      '--tag' => "chpter-config"
19
+        '--provider' => "KiplingKelvin\ChpterLaravelSdk\ChpterServiceProvider",
20
+        '--tag' => "chpter-config"
21 21
     ]);
22 22
 
23 23
         $this->info('Installed Chpter for Laravel');
Please login to merge, or discard this patch.