Completed
Branch dependabot/composer/orchestra/... (ad6976)
by Kazi Mainuddin
01:54
created
src/Config/tzsk-payu.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
     | These are the fields that are optional for making a payment.
55 55
     |
56 56
     */
57
-    'optional_fields' => array_map(function ($i) {
57
+    'optional_fields' => array_map(function($i) {
58 58
         return "udf{$i}";
59 59
     }, range(1, 10)),
60 60
 
Please login to merge, or discard this patch.
src/Helpers/Storage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function boot()
54 54
     {
55
-        if (! $this->account) {
55
+        if (!$this->account) {
56 56
             $this->account = config('payu.default');
57 57
         }
58 58
     }
Please login to merge, or discard this patch.
src/Migration/2016_12_03_000000_create_payu_payments_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('payu_payments', function (Blueprint $table) {
16
+        Schema::create('payu_payments', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('account');
19 19
             $table->unsignedInteger('payable_id')->nullable();
Please login to merge, or discard this patch.
src/Verifiers/BizVerifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     protected function fields()
44 44
     {
45 45
         $txn_string = implode('|', $this->txnIds);
46
-        $hash_str = $this->config->getKey() . '|' . $this->command . '|' . $txn_string . '|' . $this->config->getSalt();
46
+        $hash_str = $this->config->getKey().'|'.$this->command.'|'.$txn_string.'|'.$this->config->getSalt();
47 47
 
48 48
         return [
49 49
             'key' => $this->config->getKey(),
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $response = ['status' => true, 'data' => [], 'message' => ''];
77 77
 
78 78
         foreach ($this->txnIds as $id) {
79
-            if (! empty($data->transaction_details->{$id})) {
79
+            if (!empty($data->transaction_details->{$id})) {
80 80
                 $response['data'][$id] = $this->getInstance($data->transaction_details->{$id});
81 81
             }
82 82
         }
Please login to merge, or discard this patch.
src/Verifiers/MoneyVerifier.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $src = "https://www.payumoney.com/{$this->prefix()}payment/op/getPaymentResponse?";
31 31
 
32
-        return $src . http_build_query($this->fields());
32
+        return $src.http_build_query($this->fields());
33 33
     }
34 34
 
35 35
     /**
@@ -59,14 +59,14 @@  discard block
 block discarded – undo
59 59
      */
60 60
     protected function makeResponse($data)
61 61
     {
62
-        if (! empty($data->errorCode)) {
62
+        if (!empty($data->errorCode)) {
63 63
             return (object) ['status' => false, 'data' => [], 'message' => $data->message];
64 64
         }
65 65
         $response = ['status' => true, 'data' => [], 'message' => ''];
66 66
         $collection = collect($data->result)->pluck('postBackParam', 'merchantTransactionId');
67 67
 
68 68
         foreach ($this->txnIds as $id) {
69
-            if (! empty($collection[$id])) {
69
+            if (!empty($collection[$id])) {
70 70
                 $response['data'][$id] = $this->getInstance($collection[$id]);
71 71
             }
72 72
         }
Please login to merge, or discard this patch.
src/Routes/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * Routes for payment.
4 4
  */
5 5
 
6
-Route::group(['namespace' => 'Tzsk\Payu\Controllers', 'middleware' => ['web']], function () {
6
+Route::group(['namespace' => 'Tzsk\Payu\Controllers', 'middleware' => ['web']], function() {
7 7
     /**
8 8
      * Make the payment request.
9 9
      */
Please login to merge, or discard this patch.
src/Helpers/Processor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $attributes['account'] = $this->storage->getAccount();
94 94
 
95 95
         $modelArray = $this->storage->getModel();
96
-        if (! empty($modelArray)) {
96
+        if (!empty($modelArray)) {
97 97
             $attributes['payable_id'] = $modelArray['id'];
98 98
             $attributes['payable_type'] = $modelArray['class'];
99 99
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $instance = PayuPayment::firstOrNew(['txnid' => $attributes['txnid']]);
110 110
         $instance->fill(array_filter($attributes))->save();
111 111
 
112
-        if (! empty($model)) {
112
+        if (!empty($model)) {
113 113
             $instance->fill([
114 114
                 'payable_id' => $model['id'],
115 115
                 'payable_type' => $model['class']
Please login to merge, or discard this patch.
src/Helpers/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@
 block discarded – undo
231 231
      */
232 232
     public function getPaymentUrl()
233 233
     {
234
-        return 'https://' . $this->prefix() . '.' . $this->endpoint;
234
+        return 'https://'.$this->prefix().'.'.$this->endpoint;
235 235
     }
236 236
 
237 237
     /**
Please login to merge, or discard this patch.
src/Provider/PayuServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         /**
22 22
          * Register singleton.
23 23
          */
24
-        $this->app->singleton('tzsk-payu', function ($app) {
24
+        $this->app->singleton('tzsk-payu', function($app) {
25 25
             return new PayuGateway();
26 26
         });
27 27
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
          * Merge Configurations.
38 38
          */
39 39
         $this->mergeConfigFrom(
40
-            __DIR__ . '/../Config/tzsk-payu.php',
40
+            __DIR__.'/../Config/tzsk-payu.php',
41 41
             'payu'
42 42
         );
43 43
     }
@@ -51,14 +51,14 @@  discard block
 block discarded – undo
51 51
          * Configurations that needs to be done by user.
52 52
          */
53 53
         $this->publishes([
54
-            __DIR__ . '/../Config/payu.php' => config_path('payu.php'),
54
+            __DIR__.'/../Config/payu.php' => config_path('payu.php'),
55 55
         ], 'payu-config');
56 56
 
57 57
         /**
58 58
          * Migration file for the payments.
59 59
          */
60 60
         $this->publishes([
61
-            __DIR__ . '/../Migration/' => database_path('migrations')
61
+            __DIR__.'/../Migration/' => database_path('migrations')
62 62
         ], 'payu-table');
63 63
     }
64 64
 
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
         /**
71 71
          * Load routes for payment.
72 72
          */
73
-        if (! $this->app->routesAreCached()) {
74
-            require __DIR__ . '/../Routes/routes.php';
73
+        if (!$this->app->routesAreCached()) {
74
+            require __DIR__.'/../Routes/routes.php';
75 75
         }
76 76
 
77 77
         /**
78 78
          * Load the Views.
79 79
          */
80
-        $this->loadViewsFrom(__DIR__ . '/../Views', 'tzsk');
80
+        $this->loadViewsFrom(__DIR__.'/../Views', 'tzsk');
81 81
     }
82 82
 }
Please login to merge, or discard this patch.