Completed
Push — master ( b4fd6e...445306 )
by Aimeos
02:15
created
client/jsonapi/src/Client/JsonApi/Basket/Service/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->setService( $entry->id, null );
80 80
 				}
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->controller->setService( $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(
@@ -160,16 +157,14 @@  discard block
 block discarded – undo
160 157
 			$view->total = 1;
161 158
 
162 159
 			$status = 201;
163
-		}
164
-		catch( \Aimeos\MShop\Exception $e )
160
+		} catch( \Aimeos\MShop\Exception $e )
165 161
 		{
166 162
 			$status = 404;
167 163
 			$view->errors = array( array(
168 164
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
169 165
 				'detail' => $e->getTraceAsString(),
170 166
 			) );
171
-		}
172
-		catch( \Exception $e )
167
+		} catch( \Exception $e )
173 168
 		{
174 169
 			$status = 500;
175 170
 			$view->errors = array( array(
Please login to merge, or discard this patch.