Completed
Push — master ( 5159f0...6358b0 )
by Hannes
02:18 queued 01:45
created
lib/Payone/Protocol/Service/ApplyFilters.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $stringArray = array();
77 77
 
78 78
         foreach ($objectArray as $key => $value) {
79
-            if($value instanceof Payone_Api_Response_Parameter_Interface){
79
+            if ($value instanceof Payone_Api_Response_Parameter_Interface) {
80 80
                 $stringArray[] = $this->apply($value->toArray());
81 81
             } elseif ($value !== null) {
82 82
                 $filter = $this->getFilterConfig($key);
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
                 }
87 87
             }
88 88
 
89
-            if(is_array($value)) {
89
+            if (is_array($value)) {
90 90
                 foreach ($value as $sArrayKey => $sArrayValue) {
91
-                    $stringArray[] = $key.'_'.$sArrayKey.'='.$sArrayValue;
91
+                    $stringArray[] = $key . '_' . $sArrayKey . '=' . $sArrayValue;
92 92
                 }
93 93
             } else {
94 94
                 $stringArray[] = $key . '=' . $value;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     public function setFilters(array $filters)
127 127
     {
128 128
         $this->filters = array();
129
-        foreach($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value)
129
+        foreach ($filters as $key => /** @var $value Payone_Protocol_Filter_Interface */ $value)
130 130
         {
131 131
             $this->addFilter($value);
132 132
         }
@@ -160,8 +160,8 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function getFilterConfig($key)
162 162
     {
163
-        foreach($this->filters_config as $filter => $config) {
164
-            if(in_array($key, $config)) {
163
+        foreach ($this->filters_config as $filter => $config) {
164
+            if (in_array($key, $config)) {
165 165
                 return $this->getFilter($filter);
166 166
             }
167 167
         }
Please login to merge, or discard this patch.
lib/Payone/Protocol/Logger/Log4php.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             return FALSE;
86 86
         }
87 87
 
88
-        $sFullLogMessage = date('[Y-m-d H:i:s] ').strtoupper($level).' - '.$message.PHP_EOL;
88
+        $sFullLogMessage = date('[Y-m-d H:i:s] ') . strtoupper($level) . ' - ' . $message . PHP_EOL;
89 89
         error_log($sFullLogMessage, 3, $fileName);
90 90
         
91 91
         return true;
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Preauthorize.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/SessionStatus/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/SessionStatus/Request/Item/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/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
     const BANCONTACT = 'BCT';
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
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
             return $aValue;
104 104
         }
105 105
 
106
-        if($this->applyFilters) {
106
+        if ($this->applyFilters) {
107 107
             $result = $this->applyFilters->apply($aValue);
108 108
         } else {
109 109
             $protocolFactory     = new Payone_Protocol_Factory();
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Request/Payment/Genericpayment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 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
 
37
-        if ($request instanceof Payone_Api_Request_PaydirektExpressSetCheckout && $request->getInvoicing())  {
37
+        if ($request instanceof Payone_Api_Request_PaydirektExpressSetCheckout && $request->getInvoicing()) {
38 38
             foreach ($request->getInvoicing()->getItems() as $invoicingItem) {
39 39
                 $invoicingItem->setPr(
40 40
                     round($invoicingItem->getPr(), 2) * 100
Please login to merge, or discard this patch.
lib/Payone/Enum/ClearingType.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,16 +29,16 @@  discard block
 block discarded – undo
29 29
      */
30 30
 
31 31
     /** Cash */
32
-    const BARZAHLEN = 'csh';                // Default csh mapping
32
+    const BARZAHLEN = 'csh'; // Default csh mapping
33 33
 
34 34
     /** Cash on delivery */
35
-    const CASHONDELIVERY = 'cod';           // Default cod mapping
35
+    const CASHONDELIVERY = 'cod'; // Default cod mapping
36 36
 
37 37
     /** Creditcards */
38
-    const CREDITCARD = 'cc';                // Default cc mapping
38
+    const CREDITCARD = 'cc'; // Default cc mapping
39 39
 
40 40
     /** Debit payments */
41
-    const DEBITPAYMENT = 'elv';             // Default elv mapping
41
+    const DEBITPAYMENT = 'elv'; // Default elv mapping
42 42
 
43 43
     /** Financing */
44 44
     const PAYOLUTION = 'fnc';
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
     const KLARNAINVOICING = 'fnc';
52 52
     const KLARNAINSTALLMENT = 'fnc';
53 53
     const KLARNADIRECTDEBIT = 'fnc';
54
-    const FINANCING = 'fnc';                // Default fnc mapping
54
+    const FINANCING = 'fnc'; // Default fnc mapping
55 55
 
56 56
     /** Invoices */
57 57
     const PAYMENTGUARANTEEINVOICE = 'rec';
58
-    const INVOICE = 'rec';                  // Default rec mapping
58
+    const INVOICE = 'rec'; // Default rec mapping
59 59
 
60 60
     /** Online Banktransfer */
61 61
     const ONLINEBANKTRANSFERBCT = 'sb';
@@ -67,10 +67,10 @@  discard block
 block discarded – undo
67 67
     const ONLINEBANKTRANSFERGIROPAY = 'sb';
68 68
     const ONLINEBANKTRANSFERSOFORT = 'sb';
69 69
     const ONLINEBANKTRANSFERTRUSTLY = 'sb';
70
-    const ONLINEBANKTRANSFER = 'sb';        // Default sb mapping
70
+    const ONLINEBANKTRANSFER = 'sb'; // Default sb mapping
71 71
 
72 72
     /** Pre-payments */
73
-    const ADVANCEPAYMENT = 'vor';           // Default vor mapping
73
+    const ADVANCEPAYMENT = 'vor'; // Default vor mapping
74 74
 
75 75
     /** Wallets */
76 76
     const AMAZONPAY = 'wlt';
@@ -79,5 +79,5 @@  discard block
 block discarded – undo
79 79
     const WALLETPAYDIREKTEXPRESS = 'wlt';
80 80
     const WALLETPAYPALEXPRESS = 'wlt';
81 81
     const WALLETWECHATPAY = 'wlt';
82
-    const WALLET = 'wlt';                   // Default wlt mapping
82
+    const WALLET = 'wlt'; // Default wlt mapping
83 83
 }
Please login to merge, or discard this patch.