Passed
Push — master ( 4d42a8...90f661 )
by DP
04:42 queued 32s
created
src/Message/PurchaseRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $data['billing_email'] = $this->getBillingEmail();
225 225
         $data['billing_tel'] = $this->getBillingTel();
226 226
 
227
-        if ( $this->getCard() ) {
227
+        if ($this->getCard()) {
228 228
             $data['card_number'] = $this->getCard()->getNumber();
229 229
             $data['expiry_month'] = $this->getCard()->getExpiryMonth();
230 230
             $data['expiry_year'] = $this->getCard()->getExpiryYear();
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $merchant_data = [];
248 248
 
249
-        foreach ( $this->getData() as $k => $v ) {
250
-            if ( !empty($v) ) {
249
+        foreach ($this->getData() as $k => $v) {
250
+            if (!empty($v)) {
251 251
                 $merchant_data[$k] = urlencode($v);
252 252
             }
253 253
         }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
         $encrypted_data = $cryto->encrypt(http_build_query($merchant_data), $this->getWorkingKey());
261 261
 
262
-        $url = $this->getEndpoint() . '&encRequest=' . $encrypted_data . '&access_code=' . $this->getAccessCode();
262
+        $url = $this->getEndpoint().'&encRequest='.$encrypted_data.'&access_code='.$this->getAccessCode();
263 263
 
264 264
         return $this->response = new PurchaseResponse($this, [
265 265
             'url'           => $url,
Please login to merge, or discard this patch.