Passed
Pull Request — master (#5)
by
unknown
09:46
created
src/Message/PurchaseRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         $data['billing_tel'] = $this->getBillingTel();
227 227
         $data['customer_email'] = '[email protected]';
228 228
 
229
-        if ( $this->getCard() ) {
229
+        if ($this->getCard()) {
230 230
             $data['card_number'] = $this->getCard()->getNumber();
231 231
             $data['expiry_month'] = $this->getCard()->getExpiryMonth();
232 232
             $data['expiry_year'] = $this->getCard()->getExpiryYear();
@@ -248,8 +248,8 @@  discard block
 block discarded – undo
248 248
     {
249 249
         $merchant_data = [];
250 250
 
251
-        foreach ( $this->getData() as $k => $v ) {
252
-            if ( !empty($v) ) {
251
+        foreach ($this->getData() as $k => $v) {
252
+            if (!empty($v)) {
253 253
                 $merchant_data[$k] = urlencode($v);
254 254
             }
255 255
         }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
         $encrypted_data = $cryto->encrypt(http_build_query($merchant_data), $this->getWorkingKey());
263 263
 
264
-        $url = $this->getEndpoint() . '&encRequest=' . $encrypted_data . '&access_code=' . $this->getAccessCode();
264
+        $url = $this->getEndpoint().'&encRequest='.$encrypted_data.'&access_code='.$this->getAccessCode();
265 265
 
266 266
         return $this->response = new PurchaseResponse($this, [
267 267
             'url' => $url,
Please login to merge, or discard this patch.