@@ -122,7 +122,7 @@ discard block |
||
| 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 |
||
| 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); |