Completed
Push — master ( ac3c51...64da23 )
by Florian
03:09
created
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/SessionStatus/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/Request/Genericpayment.php 1 patch
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@  discard block
 block discarded – undo
12 12
  * Do not edit or add to this file if you wish to upgrade Payone to newer
13 13
  * versions in the future. If you wish to customize Payone for your
14 14
  * needs please refer to http://www.payone.de for more information.
15
-
16 15
  * @category        Payone
17 16
  * @package         Payone_Api
18 17
  * @subpackage      Request
@@ -254,7 +253,7 @@  discard block
 block discarded – undo
254 253
      */
255 254
     function getRatePay()
256 255
     {
257
-       return $this->ratePay;
256
+        return $this->ratePay;
258 257
     }
259 258
 
260 259
     /**
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Abstract.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function __toString()
159 159
     {
160
-        if($this->applyFilters) {
160
+        if ($this->applyFilters) {
161 161
             $result = $this->applyFilters->apply($this->toArray());
162 162
         } else {
163 163
             $protocolFactory     = new Payone_Protocol_Factory();
@@ -415,10 +415,10 @@  discard block
 block discarded – undo
415 415
     
416 416
     public function isFrontendApiCall() 
417 417
     {
418
-        if($this instanceof Payone_Api_Request_Authorization_Abstract) {
418
+        if ($this instanceof Payone_Api_Request_Authorization_Abstract) {
419 419
             $oOrder = Mage::getSingleton('checkout/session')->getQuote();
420 420
             $oPayment = $oOrder->getPayment();
421
-            if($oPayment->getMethod() == 'payone_creditcard_iframe') {
421
+            if ($oPayment->getMethod() == 'payone_creditcard_iframe') {
422 422
                 return true;
423 423
             }
424 424
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,8 +141,7 @@  discard block
 block discarded – undo
141 141
                  * @var Payone_Api_Request_Parameter_Interface $data
142 142
                  */
143 143
                 $result = array_merge($result, $data->toArray());
144
-            }
145
-            elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
144
+            } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) {
146 145
                 $result[$key] = $data;
147 146
             }
148 147
         }
@@ -194,8 +193,7 @@  discard block
 block discarded – undo
194 193
 
195 194
                 return $object->get($propertyName);
196 195
             }
197
-        }
198
-        elseif (property_exists($this, $name)) {
196
+        } elseif (property_exists($this, $name)) {
199 197
             return $this->$name;
200 198
         }
201 199
 
@@ -228,8 +226,7 @@  discard block
 block discarded – undo
228 226
 
229 227
                 return $object->set($propertyName, $value);
230 228
             }
231
-        }
232
-        elseif (property_exists($this, $name)) {
229
+        } elseif (property_exists($this, $name)) {
233 230
             $this->$name = $value;
234 231
             return true;
235 232
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Refund.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
             $response = $this->getMapperResponse()->map($responseRaw);
84 84
 
85 85
             $this->protocol($request, $response);
86
-        }
87
-        catch (Exception $e) {
86
+        } catch (Exception $e) {
88 87
             $this->protocolException($e, $request);
89 88
             throw $e;
90 89
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Vauthorize.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
             $response = $this->getMapperResponse()->map($responseRaw);
84 84
 
85 85
             $this->protocol($request, $response);
86
-        }
87
-        catch (Exception $e) {
86
+        } catch (Exception $e) {
88 87
             $this->protocolException($e, $request);
89 88
             throw $e;
90 89
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/CreateAccess.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
             $response = $this->getMapperResponse()->map($responseRaw);
84 84
 
85 85
             $this->protocol($request, $response);
86
-        }
87
-        catch (Exception $e) {
86
+        } catch (Exception $e) {
88 87
             $this->protocolException($e, $request);
89 88
             throw $e;
90 89
         }
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Capture.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
             $response = $this->getMapperResponse()->map($responseRaw);
84 84
 
85 85
             $this->protocol($request, $response);
86
-        }
87
-        catch (Exception $e) {
86
+        } catch (Exception $e) {
88 87
             $this->protocolException($e, $request);
89 88
             throw $e;
90 89
         }
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
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
             $response = $this->getMapperResponse()->map($responseRaw);
84 84
 
85 85
             $this->protocol($request, $response);
86
-        }
87
-        catch (Exception $e) {
86
+        } catch (Exception $e) {
88 87
             $this->protocolException($e, $request);
89 88
             throw $e;
90 89
         }
Please login to merge, or discard this patch.