Completed
Push — master ( 48c98e...fbf5b6 )
by Andrii
02:54
created
src/Message/CompletePurchaseResponse.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function getTime()
91 91
     {
92
-        return date('c', strtotime($this->data['transaction_date'] . ' EDT'));
92
+        return date('c', strtotime($this->data['transaction_date'].' EDT'));
93 93
     }
94 94
 
95 95
     /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function getPayer()
121 121
     {
122
-        return $this->data['buyer_name'] . '/' . $this->data['buyer_username'] . '/' . $this->data['buyer_id'];
122
+        return $this->data['buyer_name'].'/'.$this->data['buyer_username'].'/'.$this->data['buyer_id'];
123 123
     }
124 124
 
125 125
     /**
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
         $raw = file_get_contents('php://input');
144 144
         $fields = substr($raw, 0, strpos($raw, '&key='));
145 145
         $secret = $this->request->getSecret();
146
-        $supposed_hash = md5($fields . $secret);
146
+        $supposed_hash = md5($fields.$secret);
147 147
 
148 148
         // this is how they actually get it
149 149
         $kvs = '';
150 150
         foreach ($this->data as $k => $v) {
151 151
             if ($k !== 'key' && $k !== 'username') {
152
-                $kvs .= ($kvs ? '&' : '') . "$k=$v";
152
+                $kvs .= ($kvs ? '&' : '')."$k=$v";
153 153
             }
154 154
         }
155 155
         $hash = md5($kvs);
Please login to merge, or discard this patch.