Completed
Push — master ( ac3c51...64da23 )
by Florian
03:09
created
lib/Payone/Api/Request/Vauthorization.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Payone/Api/Request/Parameter/ManageMandate/PaymentMethod/BankAccount.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Parameter/Abstract.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
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
                  */
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Authorization/Abstract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -355,9 +355,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/Payone/Api/Enum/OnlinebanktransferType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Payone/Api/Enum/GenericpaymentAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
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
     
Please login to merge, or discard this patch.
lib/Payone/Api/Enum/AddressCheckDivergence.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Payone/Api/Response/Management/GetFile.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Response/AddressCheck/Valid.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.