Passed
Push — v3.0 ( 064208...41a1d8 )
by Raza
09:20
created
src/Providers/PayPalServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     private function registerPayPal()
56 56
     {
57
-        $this->app->singleton('paypal_client', static function () {
57
+        $this->app->singleton('paypal_client', static function() {
58 58
             return new PayPalClient();
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
src/Traits/PayPalAPI/Reporting.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function listTransactions(array $filters, string $fields = 'all', int $page = 1, int $page_size = 100)
24 24
     {
25
-        $filters_list = collect($filters)->isEmpty() ? '' :
26
-            collect($filters)->map(function ($value, $key) {
25
+        $filters_list = collect($filters)->isEmpty() ? '' : collect($filters)->map(function($value, $key) {
27 26
                 return "{$key}={$value}&";
28 27
             })->implode('');
29 28
 
Please login to merge, or discard this patch.
src/Traits/PayPalRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@
 block discarded – undo
195 195
             }
196 196
         }
197 197
 
198
-        collect($credentials[$this->mode])->map(function ($value, $key) {
198
+        collect($credentials[$this->mode])->map(function($value, $key) {
199 199
             $this->config[$key] = $value;
200 200
         });
201 201
 
Please login to merge, or discard this patch.
src/Traits/PayPalAPI/WebHooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $this->apiEndPoint = 'v1/notifications/webhooks';
22 22
 
23 23
         $data = ['url' => $url];
24
-        $data['event_types'] = collect($events)->map(function ($item) {
24
+        $data['event_types'] = collect($events)->map(function($item) {
25 25
             return ['name' => $item];
26 26
         })->toArray();
27 27
 
Please login to merge, or discard this patch.
src/Traits/PayPalVerifyIPN.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     {
25 25
         $headers = array_change_key_case($request->headers->all(), CASE_UPPER);
26 26
 
27
-        if(!isset($headers['PAYPAL-AUTH-ALGO'][0]) ||
27
+        if (!isset($headers['PAYPAL-AUTH-ALGO'][0]) ||
28 28
             !isset($headers['PAYPAL-TRANSMISSION-ID'][0]) ||
29 29
             !isset($headers['PAYPAL-CERT-URL'][0]) ||
30 30
             !isset($headers['PAYPAL-TRANSMISSION-SIG'][0]) ||
31 31
             !isset($headers['PAYPAL-TRANSMISSION-TIME'][0]) ||
32 32
             !isset($this->webhook_id)
33
-        ){
33
+        ) {
34 34
             \Log::error('Invalid headers or webhook id supplied for paypal webhook');
35 35
             return response()->json([
36 36
                 'status' => 'error',
Please login to merge, or discard this patch.