@@ -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 = ''; |
@@ -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 | /** |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | $varName = $this->getCurrentVarName(); |
| 78 | 78 | $helper = $this->getPasswordHelper()->setSalt($user->salt); |
| 79 | - $value = $user->id.':'.$helper->hash($user->password); |
|
| 79 | + $value = $user->id . ':' . $helper->hash($user->password); |
|
| 80 | 80 | CookieJar::instance()->newCookie() |
| 81 | 81 | ->setName($varName) |
| 82 | 82 | ->setValue($value) |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | if ($definition) { |
| 51 | 51 | return $definition->getItems(); |
| 52 | 52 | } |
| 53 | - throw new Exception('invalid smart property ['.$name.']'); |
|
| 53 | + throw new Exception('invalid smart property [' . $name . ']'); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | if ($definition) { |
| 91 | 91 | return $definition->getValues($field); |
| 92 | 92 | } |
| 93 | - throw new Exception('invalid smart property ['.$name.']'); |
|
| 93 | + throw new Exception('invalid smart property [' . $name . ']'); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | if ($definition) { |
| 106 | 106 | return $definition->getItem($value); |
| 107 | 107 | } |
| 108 | - throw new Exception('invalid smart property ['.$property.']'); |
|
| 108 | + throw new Exception('invalid smart property [' . $property . ']'); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | protected function registerSmartProperties() |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * @param null $paymentGatewaysManager |
|
| 101 | + * @param GatewaysManager $paymentGatewaysManager |
|
| 102 | 102 | */ |
| 103 | 103 | public function setPaymentGatewaysManager($paymentGatewaysManager) |
| 104 | 104 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | - * @param $name |
|
| 167 | + * @param string $name |
|
| 168 | 168 | * @return FormElementAbstract |
| 169 | 169 | */ |
| 170 | 170 | abstract public function getElement($name); |
@@ -113,6 +113,9 @@ |
||
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param string $nodeName |
|
| 118 | + */ |
|
| 116 | 119 | public function createXmlElement(DOMDocument $xmlDoc, $nodeName) |
| 117 | 120 | { |
| 118 | 121 | if (!($xmlDoc instanceof DOMDocument)) { |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @param $data |
|
| 76 | + * @param string $data |
|
| 77 | 77 | * @return string |
| 78 | 78 | */ |
| 79 | 79 | protected function generateHmac($data) |