Completed
Push — master ( e48b3f...12a717 )
by
unknown
02:57
created
lib/Payone/Api/Mapper/Response/3dsCheck.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,17 +45,13 @@
 block discarded – undo
45 45
 
46 46
         if ($this->isValid()) {
47 47
             $response = new Payone_Api_Response_3dsCheck_Valid($params);
48
-        }
49
-        elseif ($this->isEnrolled()) {
48
+        } elseif ($this->isEnrolled()) {
50 49
             $response = new Payone_Api_Response_3dsCheck_Enrolled($params);
51
-        }
52
-        elseif ($this->isInvalid()) {
50
+        } elseif ($this->isInvalid()) {
53 51
             $response = new Payone_Api_Response_3dsCheck_Invalid($params);
54
-        }
55
-        elseif ($this->isError()) {
52
+        } elseif ($this->isError()) {
56 53
             $response = new Payone_Api_Response_Error($params);
57
-        }
58
-        else {
54
+        } else {
59 55
             throw new Payone_Api_Exception_UnknownStatus();
60 56
         }
61 57
 
Please login to merge, or discard this patch.
lib/Payone/Api/Request/Abstract.php 1 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/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/ClientApi/Request/Abstract.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,8 +189,7 @@
 block discarded – undo
189 189
 
190 190
                 return $object->get($propertyName);
191 191
             }
192
-        }
193
-        elseif (property_exists($this, $name)) {
192
+        } elseif (property_exists($this, $name)) {
194 193
             return $this->$name;
195 194
         }
196 195
 
Please login to merge, or discard this patch.
lib/Payone/Api/Service/Payment/Authorize.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/Preauthorize.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/CreateAccess.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/Refund.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/Capture.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.