@@ -33,9 +33,9 @@ |
||
| 33 | 33 | class Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_BankAccount |
| 34 | 34 | extends Payone_Api_Request_Parameter_ManageMandate_PaymentMethod_Abstract |
| 35 | 35 | { |
| 36 | - /** |
|
| 37 | - * @var string |
|
| 38 | - */ |
|
| 36 | + /** |
|
| 37 | + * @var string |
|
| 38 | + */ |
|
| 39 | 39 | protected $bankcountry = NULL; |
| 40 | 40 | /** |
| 41 | 41 | * @var string |
@@ -69,8 +69,7 @@ |
||
| 69 | 69 | { |
| 70 | 70 | if (!is_array($data) and !is_object($data)) { |
| 71 | 71 | $result[$key] = $data; |
| 72 | - } |
|
| 73 | - else if ($data instanceof Payone_Api_Request_Parameter_Interface) { |
|
| 72 | + } else if ($data instanceof Payone_Api_Request_Parameter_Interface) { |
|
| 74 | 73 | /** |
| 75 | 74 | * @var Payone_Api_Request_Parameter_Interface $data |
| 76 | 75 | */ |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public function __toString() |
| 158 | 158 | { |
| 159 | - if($this->applyFilters) { |
|
| 159 | + if ($this->applyFilters) { |
|
| 160 | 160 | $result = $this->applyFilters->apply($this->toArray()); |
| 161 | 161 | } else { |
| 162 | 162 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -409,10 +409,10 @@ discard block |
||
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | public function isFrontendApiCall() { |
| 412 | - if($this instanceof Payone_Api_Request_Authorization_Abstract) { |
|
| 412 | + if ($this instanceof Payone_Api_Request_Authorization_Abstract) { |
|
| 413 | 413 | $oOrder = Mage::getSingleton('checkout/session')->getQuote(); |
| 414 | 414 | $oPayment = $oOrder->getPayment(); |
| 415 | - if($oPayment->getMethod() == 'payone_creditcard_iframe') { |
|
| 415 | + if ($oPayment->getMethod() == 'payone_creditcard_iframe') { |
|
| 416 | 416 | return true; |
| 417 | 417 | } |
| 418 | 418 | } |
@@ -140,8 +140,7 @@ discard block |
||
| 140 | 140 | * @var Payone_Api_Request_Parameter_Interface $data |
| 141 | 141 | */ |
| 142 | 142 | $result = array_merge($result, $data->toArray()); |
| 143 | - } |
|
| 144 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 143 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 145 | 144 | $result[$key] = $data; |
| 146 | 145 | } |
| 147 | 146 | } |
@@ -192,8 +191,7 @@ discard block |
||
| 192 | 191 | |
| 193 | 192 | return $object->get($propertyName); |
| 194 | 193 | } |
| 195 | - } |
|
| 196 | - elseif (property_exists($this, $name)) { |
|
| 194 | + } elseif (property_exists($this, $name)) { |
|
| 197 | 195 | return $this->$name; |
| 198 | 196 | } |
| 199 | 197 | return null; |
@@ -224,8 +222,7 @@ discard block |
||
| 224 | 222 | |
| 225 | 223 | return $object->set($propertyName, $value); |
| 226 | 224 | } |
| 227 | - } |
|
| 228 | - elseif (property_exists($this, $name)) { |
|
| 225 | + } elseif (property_exists($this, $name)) { |
|
| 229 | 226 | $this->$name = $value; |
| 230 | 227 | return true; |
| 231 | 228 | } |
@@ -355,9 +355,9 @@ discard block |
||
| 355 | 355 | |
| 356 | 356 | $aHashParams = array(); |
| 357 | 357 | foreach ($aParameters as $sKey => $sValue) { |
| 358 | - if(array_search($sKey, $aFrontendUnsetParams) !== false) { |
|
| 358 | + if (array_search($sKey, $aFrontendUnsetParams) !== false) { |
|
| 359 | 359 | unset($aParameters[$sKey]); |
| 360 | - } elseif(array_search($sKey, $aFrontendHashParams) !== false || stripos($sKey, '[') !== false) { |
|
| 360 | + } elseif (array_search($sKey, $aFrontendHashParams) !== false || stripos($sKey, '[') !== false) { |
|
| 361 | 361 | $aHashParams[$sKey] = $sValue; |
| 362 | 362 | } |
| 363 | 363 | } |
@@ -365,10 +365,10 @@ discard block |
||
| 365 | 365 | |
| 366 | 366 | $sUrlParams = '?'; |
| 367 | 367 | foreach ($aParameters as $sKey => $sValue) { |
| 368 | - $sUrlParams .= $sKey.'='.urlencode($sValue).'&'; |
|
| 368 | + $sUrlParams .= $sKey . '=' . urlencode($sValue) . '&'; |
|
| 369 | 369 | } |
| 370 | 370 | $sUrlParams = rtrim($sUrlParams, '&'); |
| 371 | - $sFrontendApiUrl = $sFrontendApiUrl.$sUrlParams; |
|
| 371 | + $sFrontendApiUrl = $sFrontendApiUrl . $sUrlParams; |
|
| 372 | 372 | |
| 373 | 373 | return $sFrontendApiUrl; |
| 374 | 374 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | const GIROPAY = 'GPY'; |
| 37 | 37 | const EPS_ONLINE_BANK_TRANSFER = 'EPS'; |
| 38 | 38 | const POSTFINANCE_EFINANCE = 'PFF'; |
| 39 | - const POSTFINANCE_CARD = 'PFC'; |
|
| 39 | + const POSTFINANCE_CARD = 'PFC'; |
|
| 40 | 40 | const IDEAL = 'IDL'; |
| 41 | 41 | const P24 = 'P24'; |
| 42 | 42 | |
@@ -23,12 +23,12 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * initalize paypal express checkout process |
| 25 | 25 | */ |
| 26 | - const PAYPAL_ECS_SET_EXPRESSCHECKOUT='setexpresscheckout'; |
|
| 26 | + const PAYPAL_ECS_SET_EXPRESSCHECKOUT = 'setexpresscheckout'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * get customer shipping address from paypal |
| 30 | 30 | */ |
| 31 | - const PAYPAL_ECS_GET_EXPRESSCHECKOUTDETAILS='getexpresscheckoutdetails'; |
|
| 31 | + const PAYPAL_ECS_GET_EXPRESSCHECKOUTDETAILS = 'getexpresscheckoutdetails'; |
|
| 32 | 32 | |
| 33 | 33 | const RATEPAY_PROFILE = 'profile'; |
| 34 | 34 | |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | { |
| 35 | 35 | const DEVIANT_SURNAME = 'L'; |
| 36 | 36 | const DEVIANT_FIRSTNAME = 'F'; |
| 37 | - const DEVIANT_ADDRESS= 'A'; |
|
| 37 | + const DEVIANT_ADDRESS = 'A'; |
|
| 38 | 38 | const DEVIANT_DATE_OF_BIRTH = 'B'; |
| 39 | 39 | } |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | { |
| 61 | 61 | if ($this->isError()) { |
| 62 | 62 | $result = parent::__toString(); |
| 63 | - } |
|
| 64 | - else { |
|
| 63 | + } else { |
|
| 65 | 64 | $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content'); |
| 66 | 65 | $result = implode('|', $stringArray); |
| 67 | 66 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function toArray() { |
| 50 | 50 | $result = array(); |
| 51 | 51 | foreach ($this as $key => $data) { |
| 52 | - if (!is_array($data) and ! is_object($data)) { |
|
| 52 | + if (!is_array($data) and !is_object($data)) { |
|
| 53 | 53 | $result[$key] = $data; |
| 54 | 54 | } else if ($data instanceof Payone_Api_Response_Parameter_Interface) { |
| 55 | 55 | /** |