Completed
Push — master ( 8272bb...866fa8 )
by Aimeos
02:44
created
client/jsonapi/src/Client/JsonApi/Customer/Relationships/Standard.php 1 patch
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -79,25 +79,21 @@  discard block
 block discarded – undo
79 79
 
80 80
 					$this->controller->deleteListItem( $entry->id );
81 81
 				}
82
-			}
83
-			else
82
+			} else
84 83
 			{
85 84
 				$this->controller->deleteListItem( $relId );
86 85
 			}
87 86
 
88 87
 			$status = 200;
89
-		}
90
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
88
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
91 89
 		{
92 90
 			$status = 403;
93 91
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
94
-		}
95
-		catch( \Aimeos\MShop\Exception $e )
92
+		} catch( \Aimeos\MShop\Exception $e )
96 93
 		{
97 94
 			$status = 404;
98 95
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
99
-		}
100
-		catch( \Exception $e )
96
+		} catch( \Exception $e )
101 97
 		{
102 98
 			$status = 500;
103 99
 			$view->errors = $this->getErrorDetails( $e );
@@ -130,26 +126,22 @@  discard block
 block discarded – undo
130 126
 			{
131 127
 				$filter = $this->initCriteria( $cntl->createListsFilter(), $view->param( 'filter', [] ) );
132 128
 				$view->items = $cntl->searchListItems( $filter, $total );
133
-			}
134
-			else
129
+			} else
135 130
 			{
136 131
 				$view->items = $cntl->getListItem( $relId );
137 132
 			}
138 133
 
139 134
 			$view->total = $total;
140 135
 			$status = 200;
141
-		}
142
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
136
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
143 137
 		{
144 138
 			$status = 403;
145 139
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
146
-		}
147
-		catch( \Aimeos\MShop\Exception $e )
140
+		} catch( \Aimeos\MShop\Exception $e )
148 141
 		{
149 142
 			$status = 404;
150 143
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
151
-		}
152
-		catch( \Exception $e )
144
+		} catch( \Exception $e )
153 145
 		{
154 146
 			$status = 500;
155 147
 			$view->errors = $this->getErrorDetails( $e );
@@ -185,18 +177,15 @@  discard block
 block discarded – undo
185 177
 			$view->items = $cntl->editListItem( $view->param( 'relatedid' ), (array) $payload->data->attributes );
186 178
 			$view->total = 1;
187 179
 			$status = 200;
188
-		}
189
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
180
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
190 181
 		{
191 182
 			$status = 403;
192 183
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
193
-		}
194
-		catch( \Aimeos\MShop\Exception $e )
184
+		} catch( \Aimeos\MShop\Exception $e )
195 185
 		{
196 186
 			$status = 404;
197 187
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
198
-		}
199
-		catch( \Exception $e )
188
+		} catch( \Exception $e )
200 189
 		{
201 190
 			$status = 500;
202 191
 			$view->errors = $this->getErrorDetails( $e );
@@ -245,18 +234,15 @@  discard block
 block discarded – undo
245 234
 			$view->total = count( $list );
246 235
 			$view->items = $list;
247 236
 			$status = 201;
248
-		}
249
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
237
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
250 238
 		{
251 239
 			$status = 403;
252 240
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
253
-		}
254
-		catch( \Aimeos\MShop\Exception $e )
241
+		} catch( \Aimeos\MShop\Exception $e )
255 242
 		{
256 243
 			$status = 404;
257 244
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
258
-		}
259
-		catch( \Exception $e )
245
+		} catch( \Exception $e )
260 246
 		{
261 247
 			$status = 500;
262 248
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.