Completed
Push — master ( 601801...d60221 )
by Aimeos
02:21
created
client/jsonapi/src/Client/JsonApi/Customer/Standard.php 1 patch
Braces   +12 added lines, -24 removed lines patch added patch discarded remove patch
@@ -42,18 +42,15 @@  discard block
 block discarded – undo
42 42
 			$cntl = \Aimeos\Controller\Frontend\Factory::createController( $this->getContext(), 'customer' );
43 43
 			$cntl->deleteItem( $view->param( 'id' ) );
44 44
 			$status = 200;
45
-		}
46
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
45
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
47 46
 		{
48 47
 			$status = 403;
49 48
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
50
-		}
51
-		catch( \Aimeos\MShop\Exception $e )
49
+		} catch( \Aimeos\MShop\Exception $e )
52 50
 		{
53 51
 			$status = 404;
54 52
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
55
-		}
56
-		catch( \Exception $e )
53
+		} catch( \Exception $e )
57 54
 		{
58 55
 			$status = 500;
59 56
 			$view->errors = $this->getErrorDetails( $e );
@@ -88,18 +85,15 @@  discard block
 block discarded – undo
88 85
 
89 86
 			$view->item = $cntl->getItem( $view->param( 'id' ), $ref );
90 87
 			$status = 200;
91
-		}
92
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
88
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
93 89
 		{
94 90
 			$status = 403;
95 91
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
96
-		}
97
-		catch( \Aimeos\MShop\Exception $e )
92
+		} catch( \Aimeos\MShop\Exception $e )
98 93
 		{
99 94
 			$status = 404;
100 95
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
101
-		}
102
-		catch( \Exception $e )
96
+		} catch( \Exception $e )
103 97
 		{
104 98
 			$status = 500;
105 99
 			$view->errors = $this->getErrorDetails( $e );
@@ -134,18 +128,15 @@  discard block
 block discarded – undo
134 128
 
135 129
 			$view->item = $cntl->editItem( $view->param( 'id' ), (array) $payload->data->attributes );
136 130
 			$status = 200;
137
-		}
138
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
131
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
139 132
 		{
140 133
 			$status = 403;
141 134
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
142
-		}
143
-		catch( \Aimeos\MShop\Exception $e )
135
+		} catch( \Aimeos\MShop\Exception $e )
144 136
 		{
145 137
 			$status = 404;
146 138
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
147
-		}
148
-		catch( \Exception $e )
139
+		} catch( \Exception $e )
149 140
 		{
150 141
 			$status = 500;
151 142
 			$view->errors = $this->getErrorDetails( $e );
@@ -181,18 +172,15 @@  discard block
 block discarded – undo
181 172
 			$view->item = $cntl->addItem( (array) $payload->data->attributes );
182 173
 			$view->nodata = true; // only expose customer ID to attackers
183 174
 			$status = 201;
184
-		}
185
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
175
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
186 176
 		{
187 177
 			$status = 403;
188 178
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
189
-		}
190
-		catch( \Aimeos\MShop\Exception $e )
179
+		} catch( \Aimeos\MShop\Exception $e )
191 180
 		{
192 181
 			$status = 404;
193 182
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
194
-		}
195
-		catch( \Exception $e )
183
+		} catch( \Exception $e )
196 184
 		{
197 185
 			$status = 500;
198 186
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.