Passed
Push — main ( b88300...feada6 )
by امید
02:25
created
src/Providers/ParsianRefundProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         /**
27 27
          * Bind to service container.
28 28
          */
29
-        $this->app->bind('parsian-refund', function () {
29
+        $this->app->bind('parsian-refund', function() {
30 30
             $config = config('parsianRefund') ?? [];
31 31
             return new ParsianRefund($config);
32 32
         });
Please login to merge, or discard this patch.
src/config/parsianRefund.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
     'apiRefundUrl'     => 'https://refundservices.pec.ir/api/Refund/',
7 7
     'withoutVerifying' => 'false',
8 8
     'certificate'      => '',
9
-    'certificateType'  => 'xml_file',// can be: xml_file, xml_string
9
+    'certificateType'  => 'xml_file', // can be: xml_file, xml_string
10 10
     'callbackUrl'      => 'http://yoursite.com/path/to',
11 11
     'http_request'     => [
12 12
         'time_out'    => env('APP_HTTP_TIME_OUT', 10),
13 13
         'retry_times' => env('APP_HTTP_RETRY_TIMES', 10),
14
-        'retry_sleep' => env('APP_HTTP_RETRY_SLEEP', 1000),// in millisecond unit
14
+        'retry_sleep' => env('APP_HTTP_RETRY_SLEEP', 1000), // in millisecond unit
15 15
     ],
16 16
 ];
Please login to merge, or discard this patch.
src/ParsianRefund.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public static function getDefaultConfigPath() : string
81 81
     {
82
-        return __DIR__.'/config/parsianRefund.php';
82
+        return __DIR__ . '/config/parsianRefund.php';
83 83
     }
84 84
 
85 85
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $response = Http::baseUrl($this->settings['apiRefundUrl'])
155 155
             ->withBasicAuth($this->settings['username'], $this->settings['password'])
156 156
             ->timeout($this->settings['http_request']['time_out'])
157
-            ->retry($this->settings['http_request']['retry_times'], $this->settings['http_request']['retry_sleep'], function ($exeption) {
157
+            ->retry($this->settings['http_request']['retry_times'], $this->settings['http_request']['retry_sleep'], function($exeption) {
158 158
                 return !($exeption instanceof RequestException);
159 159
             })
160 160
             ->asForm();
Please login to merge, or discard this patch.