Completed
Push — master ( 8ff506...b4fd6e )
by Aimeos
02:18
created
client/jsonapi/src/Client/JsonApi/Basket/Address/Standard.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 					$this->controller->setAddress( $entry->id, null );
80 80
 				}
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->controller->setAddress( $relId, null );
85 84
 			}
@@ -89,16 +88,14 @@  discard block
 block discarded – undo
89 88
 			$view->total = 1;
90 89
 
91 90
 			$status = 200;
92
-		}
93
-		catch( \Aimeos\MShop\Exception $e )
91
+		} catch( \Aimeos\MShop\Exception $e )
94 92
 		{
95 93
 			$status = 404;
96 94
 			$view->errors = array( array(
97 95
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
98 96
 				'detail' => $e->getTraceAsString(),
99 97
 			) );
100
-		}
101
-		catch( \Exception $e )
98
+		} catch( \Exception $e )
102 99
 		{
103 100
 			$status = 500;
104 101
 			$view->errors = array( array(
@@ -149,16 +146,14 @@  discard block
 block discarded – undo
149 146
 			$view->total = 1;
150 147
 
151 148
 			$status = 201;
152
-		}
153
-		catch( \Aimeos\MShop\Exception $e )
149
+		} catch( \Aimeos\MShop\Exception $e )
154 150
 		{
155 151
 			$status = 404;
156 152
 			$view->errors = array( array(
157 153
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
158 154
 				'detail' => $e->getTraceAsString(),
159 155
 			) );
160
-		}
161
-		catch( \Exception $e )
156
+		} catch( \Exception $e )
162 157
 		{
163 158
 			$status = 500;
164 159
 			$view->errors = array( array(
Please login to merge, or discard this patch.