@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $this->getForm()->addDisplayGroup($this->elements, $this->getGateway()->getLabel()); |
35 | 35 | $this->getForm()->getDisplayGroup($this->getGateway()->getLabel()) |
36 | 36 | ->setAttrib('class', 'payment_gateway_fieldset') |
37 | - ->setAttrib('id', 'payment_gateway_'.$this->getGateway()->getName()); |
|
37 | + ->setAttrib('id', 'payment_gateway_' . $this->getGateway()->getName()); |
|
38 | 38 | } |
39 | 39 | } |
40 | 40 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | protected function getElementNameFromMagicMethodArguments($arguments) |
158 | 158 | { |
159 | - $name = ''.$this->getGateway()->getName().'['.$arguments[0].']'; |
|
159 | + $name = '' . $this->getGateway()->getName() . '[' . $arguments[0] . ']'; |
|
160 | 160 | $this->elements[$arguments[0]] = $name; |
161 | 161 | |
162 | 162 | return $name; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | if ($string === null || strlen($string) == 0) { |
19 | 19 | $return = '-'; // valorile nule sunt inlocuite cu - |
20 | 20 | } else { |
21 | - $return = strlen($string).$string; |
|
21 | + $return = strlen($string) . $string; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | return $return; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $ipad = str_repeat(chr(0x36), $blocksize); |
44 | 44 | $opad = str_repeat(chr(0x5c), $blocksize); |
45 | 45 | |
46 | - $hmac = pack('H*', $hashfunc(($key ^ $opad).pack('H*', $hashfunc(($key ^ $ipad).$data)))); |
|
46 | + $hmac = pack('H*', $hashfunc(($key ^ $opad) . pack('H*', $hashfunc(($key ^ $ipad) . $data)))); |
|
47 | 47 | |
48 | 48 | return bin2hex($hmac); |
49 | 49 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | 'order_desc' => $this->getOrderName(), |
66 | 66 | 'merch_id' => $this->getMid(), |
67 | 67 | 'timestamp' => gmdate("YmdHis"), |
68 | - 'nonce' => md5(microtime().mt_rand()), |
|
68 | + 'nonce' => md5(microtime() . mt_rand()), |
|
69 | 69 | ]; |
70 | 70 | } |
71 | 71 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | 'country' => $card->getCountry(), |
91 | 91 | 'company' => $card->getBillingCompany(), |
92 | 92 | 'city' => $card->getCity(), |
93 | - 'add' => $card->getAddress1().' '.$card->getAddress2(), |
|
93 | + 'add' => $card->getAddress1() . ' ' . $card->getAddress2(), |
|
94 | 94 | 'email' => $card->getEmail(), |
95 | 95 | 'phone' => $card->getPhone(), |
96 | 96 | 'fax' => $card->getFax(), |
@@ -30,15 +30,15 @@ |
||
30 | 30 | //nu modificati |
31 | 31 | ), |
32 | 32 | 'bill' => array( |
33 | - 'fname' => '', // nume |
|
34 | - 'lname' => '', // prenume |
|
35 | - 'country' => '', // tara |
|
36 | - 'company' => '', // firma |
|
37 | - 'city' => '', // oras |
|
38 | - 'add' => '', // adresa |
|
39 | - 'email' => '', // email |
|
40 | - 'phone' => '', // telefon |
|
41 | - 'fax' => '', // fax |
|
33 | + 'fname' => '', // nume |
|
34 | + 'lname' => '', // prenume |
|
35 | + 'country' => '', // tara |
|
36 | + 'company' => '', // firma |
|
37 | + 'city' => '', // oras |
|
38 | + 'add' => '', // adresa |
|
39 | + 'email' => '', // email |
|
40 | + 'phone' => '', // telefon |
|
41 | + 'fax' => '', // fax |
|
42 | 42 | ), |
43 | 43 | ); |
44 | 44 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'MERCH_GMT' => '', |
46 | 46 | 'TIMESTAMP' => gmdate("YmdHis"), |
47 | 47 | 'NONCE' => md5(microtime() . mt_rand()), |
48 | - 'BACKREF' => '', // prenume |
|
48 | + 'BACKREF' => '', // prenume |
|
49 | 49 | ); |
50 | 50 | |
51 | 51 | $this->data['response'] = array( |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $address->county = ''; |
109 | 109 | $address->city = $card->getBillingCity(); |
110 | 110 | $address->zipCode = ''; |
111 | - $address->address = $card->getBillingAddress1().' '.$card->getBillingAddress2(); |
|
111 | + $address->address = $card->getBillingAddress1() . ' ' . $card->getBillingAddress2(); |
|
112 | 112 | $address->email = $card->getEmail(); |
113 | 113 | $address->mobilePhone = $card->getBillingPhone(); |
114 | 114 | $address->bank = ''; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $address->county = ''; |
134 | 134 | $address->city = $card->getShippingCity(); |
135 | 135 | $address->zipCode = ''; |
136 | - $address->address = $card->getShippingAddress1().' '.$card->getShippingAddress2(); |
|
136 | + $address->address = $card->getShippingAddress1() . ' ' . $card->getShippingAddress2(); |
|
137 | 137 | $address->email = $card->getEmail(); |
138 | 138 | $address->mobilePhone = $card->getShippingPhone(); |
139 | 139 | $address->bank = ''; |
@@ -212,7 +212,7 @@ |
||
212 | 212 | $attr->nodeValue = date('YmdHis'); |
213 | 213 | $xmlNotifyElem->appendChild($attr); |
214 | 214 | |
215 | - $this->_crc = md5(rand().time()); |
|
215 | + $this->_crc = md5(rand() . time()); |
|
216 | 216 | $attr = $xmlDoc->createAttribute('crc'); |
217 | 217 | $attr->nodeValue = $this->_crc; |
218 | 218 | $xmlNotifyElem->appendChild($attr); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | { |
88 | 88 | $path = $this->getParameter($type); |
89 | 89 | if (strpos($path, DIRECTORY_SEPARATOR) === false) { |
90 | - $path = $this->getFileDirectoryPath().$path; |
|
90 | + $path = $this->getFileDirectoryPath() . $path; |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | return $this->setParameter($type, $path); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function getTypesDirectory() |
19 | 19 | { |
20 | - return dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'Types'; |
|
20 | + return dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Types'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |