Passed
Push — v3.0 ( 660784...5829cc )
by Raza
02:25
created
src/Traits/PayPalRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
     private function setApiProviderConfiguration($credentials)
187 187
     {
188 188
         // Setting PayPal API Credentials
189
-        collect($credentials[$this->mode])->map(function ($value, $key) {
189
+        collect($credentials[$this->mode])->map(function($value, $key) {
190 190
             $this->config[$key] = $value;
191 191
         });
192 192
 
Please login to merge, or discard this patch.
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/WebHooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this->apiUrl = collect([$this->config['api_url'], $this->apiEndPoint])->implode('/');
23 23
 
24 24
         $data = ['url' => $url];
25
-        $data['event_types'] = collect($events)->map(function ($item) {
25
+        $data['event_types'] = collect($events)->map(function($item) {
26 26
             return ['name' => $item];
27 27
         })->toArray();
28 28
 
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, $fields = 'all', $page = 1, $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/PayPalAPI/InvoiceSearch/Filters.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         }
120 120
 
121 121
         if ($invalid_status === true) {
122
-            throw new \Exception('status should be always one of these: ' . implode(',', $this->invoices_date_types));
122
+            throw new \Exception('status should be always one of these: '.implode(',', $this->invoices_date_types));
123 123
         }
124 124
 
125 125
         $this->invoice_search_filters['status'] = $status;
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         }
214 214
 
215 215
         if (!in_array($date_type, $this->invoices_date_types)) {
216
-            throw new \Exception('date type should be always one of these: ' . implode(',', $this->invoices_date_types));
216
+            throw new \Exception('date type should be always one of these: '.implode(',', $this->invoices_date_types));
217 217
         }
218 218
 
219 219
         $this->invoice_search_filters["{$date_type}_range"] = [
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      *
230 230
      * @return \Srmklive\PayPal\Services\PayPal
231 231
      */
232
-    public function addInvoiceFilterByArchivedStatus(bool $archived=null)
232
+    public function addInvoiceFilterByArchivedStatus(bool $archived = null)
233 233
     {
234 234
         $this->invoice_search_filters['archived'] = $archived;
235 235
 
Please login to merge, or discard this patch.