Completed
Pull Request — development (#92)
by Mario
03:13
created
lib/Payone/TransactionStatus/Request/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function __toString()
64 64
     {
65
-        if($this->applyFilters) {
65
+        if ($this->applyFilters) {
66 66
             $result = $this->applyFilters->apply($this->toArray());
67 67
         } else {
68 68
             $protocolFactory     = new Payone_Protocol_Factory();
Please login to merge, or discard this patch.
lib/Payone/Api/Response/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     
100 100
     protected function _toString($aValue)
101 101
     {
102
-        if($this->applyFilters) {
102
+        if ($this->applyFilters) {
103 103
             $result = $this->applyFilters->apply($aValue);
104 104
         } else {
105 105
             $protocolFactory     = new Payone_Protocol_Factory();
Please login to merge, or discard this patch.
lib/Payone/Api/Response/Genericpayment/Approved.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public function getPayDataArray() 
96 96
     {
97 97
         $aPayData = array();
98
-        foreach($this->getPayData()->getItems() as $item) {
98
+        foreach ($this->getPayData()->getItems() as $item) {
99 99
             $sCorrectedKey = strtolower($item->getKey());
100 100
             $sCorrectedKey = str_replace('-', '_', $sCorrectedKey);
101 101
             $aPayData[$sCorrectedKey] = $item->getData();
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
         $aPayData = $this->getPayDataArray();
113 113
         foreach ($aPayData as $sKey => $sValue) {
114 114
             $aSplit = explode('_', $sKey);
115
-            for($i = count($aSplit); $i > 0; $i--) {
116
-                if($i == count($aSplit)) {
115
+            for ($i = count($aSplit); $i > 0; $i--) {
116
+                if ($i == count($aSplit)) {
117 117
                     $aTmp = array($aSplit[$i-1] => $sValue);
118 118
                 } else {
119 119
                     $aTmp = array($aSplit[$i-1] => $aTmp);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             $aInstallmentData = array_replace_recursive($aInstallmentData, $aTmp);
124 124
         }
125 125
         
126
-        if(isset($aInstallmentData['paymentdetails']) && count($aInstallmentData['paymentdetails']) > 0) {
126
+        if (isset($aInstallmentData['paymentdetails']) && count($aInstallmentData['paymentdetails']) > 0) {
127 127
             return $aInstallmentData['paymentdetails'];
128 128
         }
129 129
 
Please login to merge, or discard this patch.
lib/Payone/Api/Response/AddressCheck/Valid.php 1 patch
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.
lib/Payone/Api/Response/Parameter/Abstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         $result = array();
55 55
         foreach ($this as $key => $data) {
56
-            if (!is_array($data) and ! is_object($data)) {
56
+            if (!is_array($data) and !is_object($data)) {
57 57
                 $result[$key] = $data;
58 58
             } else if ($data instanceof Payone_Api_Response_Parameter_Interface) {
59 59
                 /**
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Authorize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
             $requestParams = $this->getMapperRequest()->map($request);
68 68
 
69
-            if($request->isFrontendApiCall() === false) {
69
+            if ($request->isFrontendApiCall() === false) {
70 70
                 $responseRaw = $this->getAdapter()->request($requestParams);
71 71
             } else {
72 72
                 $responseRaw = $request->getFrontendApiResponse();
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Request/Payment/Genericpayment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     public function map(Payone_Api_Request_Interface $request)
31 31
     {
32 32
         /** @var $request Payone_Api_Request_Authorization */
33
-        if($request->getAmount()) {
33
+        if ($request->getAmount()) {
34 34
             $this->mapAmount($request);
35 35
         }
36 36
 
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/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.