@@ -45,17 +45,13 @@ |
||
| 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 | |
@@ -141,8 +141,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -69,8 +69,7 @@ |
||
| 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 | */ |
@@ -189,8 +189,7 @@ |
||
| 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 | |
@@ -73,8 +73,7 @@ |
||
| 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 | } |
@@ -73,8 +73,7 @@ |
||
| 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 | } |
@@ -73,8 +73,7 @@ |
||
| 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 | } |
@@ -73,8 +73,7 @@ |
||
| 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 | } |
@@ -73,8 +73,7 @@ |
||
| 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 | } |