Completed
Push — master ( ac3c51...64da23 )
by Florian
03:09
created
lib/Payone/Config/Abstract.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         if (empty($data)) {
79 79
             $this->config = $this->getDefaultConfigData();
80
-        }
81
-        else {
80
+        } else {
82 81
             $this->config = $data;
83 82
         }
84 83
     }
@@ -127,8 +126,7 @@  discard block
 block discarded – undo
127 126
             // Start recursion:
128 127
             return $this->set($newKey, $value, $tree[$currentKey]);
129 128
 
130
-        }
131
-        else {
129
+        } else {
132 130
             // Set value (can overwrite an existing value)
133 131
             $tree[$key] = $value;
134 132
             // Exit recursion, Success!
@@ -166,16 +164,13 @@  discard block
 block discarded – undo
166 164
                 // Reassemble key, start recursion:
167 165
                 $newKey = implode(self::KEY_SEPARATOR, $explodedKey);
168 166
                 return $this->get($newKey, $newTree);
169
-            }
170
-            else {
167
+            } else {
171 168
                 return NULL; // Exit recursion, unsuccessful
172 169
             }
173 170
 
174
-        }
175
-        elseif (is_array($tree) and array_key_exists($key, $tree)) {
171
+        } elseif (is_array($tree) and array_key_exists($key, $tree)) {
176 172
             return $tree[$key]; // Exit recursion, Success!
177
-        }
178
-        else {
173
+        } else {
179 174
             return NULL; // Exit recursion, unsuccessful
180 175
         }
181 176
     }
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/Shop/ClearingTypes.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
             if ($value instanceof Payone_Settings_Data_ConfigFile_Interface) {
59 59
                 /** @var Payone_Api_Request_Parameter_Interface $value */
60 60
                 $array[$value->getKey()] = $value->toArray();
61
-            }
62
-            else {
61
+            } else {
63 62
                 $array[$key] = $value;
64 63
             }
65 64
         }
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/Abstract.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,21 +50,18 @@
 block discarded – undo
50 50
             if ($data instanceof Payone_Settings_Data_ConfigFile_Interface) {
51 51
                 /** @var Payone_Api_Request_Parameter_Interface $data */
52 52
                 $array[$key] = $data->toArray();
53
-            }
54
-            elseif (is_array($data))
53
+            } elseif (is_array($data))
55 54
             {
56 55
                 foreach ($data as $innerKey => $innerValue)
57 56
                 {
58 57
                     if ($innerValue instanceof Payone_Settings_Data_ConfigFile_Interface) {
59 58
                         /** @var Payone_Api_Request_Parameter_Interface $innerValue */
60 59
                         $array[$key][$innerValue->getKey()] = $innerValue->toArray();
61
-                    }
62
-                    else {
60
+                    } else {
63 61
                         $array[$key][$innerKey] = $innerValue;
64 62
                     }
65 63
                 }
66
-            }
67
-            else {
64
+            } else {
68 65
                 $array[$key] = $data;
69 66
             }
70 67
         }
Please login to merge, or discard this patch.
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/CashOnDelivery.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,8 +143,8 @@
 block discarded – undo
143 143
     }
144 144
 
145 145
     /**
146
-         * @return string
147
-         */
146
+     * @return string
147
+     */
148 148
         public function getKey()
149 149
         {
150 150
             return $this->key;
Please login to merge, or discard this patch.
lib/Payone/SessionStatus/Request/Item/Abstract.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
         {
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/Service/HandleRequest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,7 @@
 block discarded – undo
99 99
 
100 100
             // Protocol
101 101
             $this->protocol($request, $response);
102
-        }
103
-        catch (Exception $e) {
102
+        } catch (Exception $e) {
104 103
             $this->protocolException($e, $request);
105 104
             throw $e;
106 105
         }
Please login to merge, or discard this patch.
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/Mapper/Response/Authorization.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,14 +46,11 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isApproved()) {
48 48
             $response = new Payone_Api_Response_Authorization_Approved($params);
49
-        }
50
-        elseif ($this->isRedirect()) {
49
+        } elseif ($this->isRedirect()) {
51 50
             $response = new Payone_Api_Response_Authorization_Redirect($params);
52
-        }
53
-        elseif ($this->isError()) {
51
+        } elseif ($this->isError()) {
54 52
             $response = new Payone_Api_Response_Error($params);
55
-        }
56
-        else {
53
+        } else {
57 54
             throw new Payone_Api_Exception_UnknownStatus();
58 55
         }
59 56
 
Please login to merge, or discard this patch.
lib/Payone/Api/Mapper/Response/Vauthorization.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,9 @@
 block discarded – undo
46 46
 
47 47
         if ($this->isApproved()) {
48 48
             $response = new Payone_Api_Response_Vauthorization_Approved($params);
49
-        }
50
-        elseif ($this->isError()) {
49
+        } elseif ($this->isError()) {
51 50
             $response = new Payone_Api_Response_Error($params);
52
-        }
53
-        else {
51
+        } else {
54 52
             throw new Payone_Api_Exception_UnknownStatus();
55 53
         }
56 54
 
Please login to merge, or discard this patch.