Completed
Push — master ( fbf5b6...f72c03 )
by Andrii
02:49
created
src/Message/CompletePurchaseResponse.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     /**
87 87
      * Get test mode.
88 88
      *
89
-     * @return string
89
+     * @return boolean
90 90
      */
91 91
     public function getTestMode()
92 92
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function getPayer()
124 124
     {
125
-        return $this->data['buyer_name'] . '/' . $this->data['buyer_username'] . '/' . $this->data['buyer_id'];
125
+        return $this->data['buyer_name'].'/'.$this->data['buyer_username'].'/'.$this->data['buyer_id'];
126 126
     }
127 127
 
128 128
     /**
@@ -146,13 +146,13 @@  discard block
 block discarded – undo
146 146
         $raw = file_get_contents('php://input');
147 147
         $fields = substr($raw, 0, strpos($raw, '&key='));
148 148
         $secret = $this->request->getSecret();
149
-        $supposed_hash = md5($fields . $secret);
149
+        $supposed_hash = md5($fields.$secret);
150 150
 
151 151
         // this is how they actually get it
152 152
         $kvs = '';
153 153
         foreach ($this->data as $k => $v) {
154 154
             if ($k !== 'key' && $k !== 'username') {
155
-                $kvs .= ($kvs ? '&' : '') . "$k=$v";
155
+                $kvs .= ($kvs ? '&' : '')."$k=$v";
156 156
             }
157 157
         }
158 158
         $hash = md5($kvs);
Please login to merge, or discard this patch.
src/Message/PurchaseRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             'item_name'      => $this->getDescription(),
29 29
             'finish_url'     => $this->getReturnUrl(),
30 30
             'cancel_url'     => $this->getCancelUrl(),
31
-            'variables'      => 'notify_url=' . $this->getNotifyUrl(),
31
+            'variables'      => 'notify_url='.$this->getNotifyUrl(),
32 32
             'button_type_id' => 1, /// Pay Now button
33 33
         ];
34 34
 
Please login to merge, or discard this patch.