Completed
Pull Request — master (#353)
by
unknown
02:14
created
lib/Payone/TransactionStatus/Enum/Txaction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
     const REMINDER = 'reminder';
43 43
     const VAUTHORIZATION = 'vauthorization';
44 44
     const VSETTLEMENT = 'vsettlement';
45
-    const TRANSFER= 'transfer';
46
-    const INVOICE= 'invoice';
45
+    const TRANSFER = 'transfer';
46
+    const INVOICE = 'invoice';
47 47
 }
Please login to merge, or discard this patch.
lib/Payone/TransactionStatus/Request/Abstract.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
         {
84 84
             if ($data === null) {
85 85
                 continue;
86
-            }
87
-            elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
86
+            } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
88 87
                 $result[$key] = $data;
89 88
             }
90 89
         }
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.
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/Response/Management/GetInvoice.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/Service/Payment/Debit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
             $response = $this->getMapperResponse()->map($responseRaw);
74 74
 
75 75
             $this->protocol($request, $response);
76
-        }
77
-        catch (Exception $e) {
76
+        } catch (Exception $e) {
78 77
             $this->protocolException($e, $request);
79 78
             throw $e;
80 79
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Authorize.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
             $response = $this->getMapperResponse()->map($responseRaw);
74 74
 
75 75
             $this->protocol($request, $response);
76
-        }
77
-        catch (Exception $e) {
76
+        } catch (Exception $e) {
78 77
             $this->protocolException($e, $request);
79 78
             throw $e;
80 79
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/ProtocolRequest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      * @param null|Payone_Api_Response_Interface $response
45 45
      */
46 46
     public function protocol(Payone_Api_Request_Interface $request,
47
-                             Payone_Api_Response_Interface $response = null)
47
+                                Payone_Api_Response_Interface $response = null)
48 48
     {
49 49
         $request->setApplyFilters($this->getServiceApplyFilters());
50 50
         $response->setApplyFilters($this->getServiceApplyFilters());
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Management/GetInvoice.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
             $response->setRawResponse($adapter->getRawResponse());
74 74
 
75
-             $this->protocol($request, $response);
75
+                $this->protocol($request, $response);
76 76
         }
77 77
         catch (Exception $e) {
78 78
             $this->protocolException($e, $request);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,7 @@
 block discarded – undo
73 73
             $response->setRawResponse($adapter->getRawResponse());
74 74
 
75 75
              $this->protocol($request, $response);
76
-        }
77
-        catch (Exception $e) {
76
+        } catch (Exception $e) {
78 77
             $this->protocolException($e, $request);
79 78
             throw $e;
80 79
         }
Please login to merge, or discard this patch.