Completed
Push — master ( d11815...f82961 )
by Kazi Mainuddin
06:01 queued 04:05
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/Verifiers/AbstractVerifier.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     protected $config;
19 19
 
20 20
     /**
21
-     * @param array $transaction_ids
21
+     * @param string $transaction_ids
22 22
      * @param string $account
23 23
      */
24 24
     public function __construct($transaction_ids, $account = null)
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/Helpers/FormBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $this->request->replace($this->storage->getData());
51 51
 
52
-        $redirect = collect($this->config->getRedirect())->map(function ($value) {
52
+        $redirect = collect($this->config->getRedirect())->map(function($value) {
53 53
             $separator = str_contains($value, '?') ? '&' : '?';
54
-            return url($value . $separator . '_token=' . csrf_token() . '&' . 'callback=' . $this->getStatusUrl());
54
+            return url($value.$separator.'_token='.csrf_token().'&'.'callback='.$this->getStatusUrl());
55 55
         })->all();
56 56
 
57 57
         return array_merge(
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected function validateRequest()
101 101
     {
102
-        $validation = collect(array_flip($this->config->getRequiredFields()))->map(function () {
102
+        $validation = collect(array_flip($this->config->getRequiredFields()))->map(function() {
103 103
             return 'required';
104 104
         })->all();
105 105
 
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/Helpers/Redirector.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * Set Redirect URL.
14 14
      *
15
-     * @param $url
15
+     * @param string $url
16 16
      * @param array $parameters
17 17
      * @param null $secure
18 18
      * @return $this
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * Set Redirect Action.
29 29
      *
30
-     * @param $action
30
+     * @param string $action
31 31
      * @param array|null $parameters
32 32
      * @param bool $absolute
33 33
      * @return $this
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * Set Redirect Action.
44 44
      *
45
-     * @param $route
45
+     * @param string $route
46 46
      * @param array|null $parameters
47 47
      * @param bool $absolute
48 48
      * @return $this
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     }
56 56
 
57 57
     /**
58
-     * @return mixed
58
+     * @return string
59 59
      */
60 60
     public function getUrl()
61 61
     {
Please login to merge, or discard this patch.
tests/Helpers/ProcessorTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use Tzsk\Payu\Tests\TestCase;
6 6
 use Tzsk\Payu\Helpers\Processor;
7 7
 use Illuminate\Support\Facades\Session;
8
-use Tzsk\Payu\Model\PayuPayment;
9
-use Illuminate\Http\Request;
10 8
 
11 9
 class ProcessorTest extends TestCase
12 10
 {
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.