@@ -34,11 +34,11 @@ |
||
| 34 | 34 | { |
| 35 | 35 | protected $request = Payone_Api_Enum_RequestType::VAUTHORIZATION; |
| 36 | 36 | |
| 37 | - /** |
|
| 38 | - * Sub account ID |
|
| 39 | - * |
|
| 40 | - * @var int |
|
| 41 | - */ |
|
| 37 | + /** |
|
| 38 | + * Sub account ID |
|
| 39 | + * |
|
| 40 | + * @var int |
|
| 41 | + */ |
|
| 42 | 42 | protected $aid = NULL; |
| 43 | 43 | /** |
| 44 | 44 | * @var string |
@@ -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 | */ |
@@ -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 | } |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | public function setStreet($street) |
| 160 | 160 | { |
| 161 | 161 | $sNewStreet2 = ''; |
| 162 | - if(stripos($street, '\n') !== false) {//MAGE-195 - split address by the \n and write it in the 2. address field |
|
| 162 | + if (stripos($street, '\n') !== false) {//MAGE-195 - split address by the \n and write it in the 2. address field |
|
| 163 | 163 | $aStreetExpl = explode('\n', $street); |
| 164 | 164 | |
| 165 | 165 | $street = $aStreetExpl[0]; |
@@ -73,8 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECT) { |
| 75 | 75 | return TRUE; |
| 76 | - } |
|
| 77 | - else { |
|
| 76 | + } else { |
|
| 78 | 77 | return FALSE; |
| 79 | 78 | } |
| 80 | 79 | } |
@@ -86,8 +85,7 @@ discard block |
||
| 86 | 85 | { |
| 87 | 86 | if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_CORRECTABLE) { |
| 88 | 87 | return TRUE; |
| 89 | - } |
|
| 90 | - else { |
|
| 88 | + } else { |
|
| 91 | 89 | return FALSE; |
| 92 | 90 | } |
| 93 | 91 | } |
@@ -99,8 +97,7 @@ discard block |
||
| 99 | 97 | { |
| 100 | 98 | if ($this->secstatus == Payone_Api_Enum_AddressCheckSecstatus::ADDRESS_NONE_CORRECTABLE) { |
| 101 | 99 | return TRUE; |
| 102 | - } |
|
| 103 | - else { |
|
| 100 | + } else { |
|
| 104 | 101 | return FALSE; |
| 105 | 102 | } |
| 106 | 103 | } |