Passed
Push — v3.0 ( 8df734...660784 )
by Raza
03:01
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         }
177 177
 
178 178
         if (!in_array($date_type, $this->invoices_date_types)) {
179
-            throw new \Exception("date type should be always one of these: " . implode(',', $this->invoices_date_types));
179
+            throw new \Exception("date type should be always one of these: ".implode(',', $this->invoices_date_types));
180 180
         }
181 181
 
182 182
         $this->invoice_search_filters["{$date_type}_range"] = [
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      *
193 193
      * @return \Srmklive\PayPal\Services\PayPal
194 194
      */
195
-    public function addInvoiceFilterByArchivedStatus(bool $archived=null)
195
+    public function addInvoiceFilterByArchivedStatus(bool $archived = null)
196 196
     {
197 197
         $this->invoice_search_filters['archived'] = $archived;
198 198
 
Please login to merge, or discard this patch.