Completed
Push — master ( af944c...160768 )
by Aimeos
09:16
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
@@ -82,8 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 					$this->controller->deleteService( $entry->id );
84 84
 				}
85
-			}
86
-			else
85
+			} else
87 86
 			{
88 87
 				$this->controller->deleteService( $relId );
89 88
 			}
@@ -91,13 +90,11 @@  discard block
 block discarded – undo
91 90
 
92 91
 			$view->item = $this->controller->get();
93 92
 			$status = 200;
94
-		}
95
-		catch( \Aimeos\MShop\Exception $e )
93
+		} catch( \Aimeos\MShop\Exception $e )
96 94
 		{
97 95
 			$status = 404;
98 96
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
99
-		}
100
-		catch( \Exception $e )
97
+		} catch( \Exception $e )
101 98
 		{
102 99
 			$status = 500;
103 100
 			$view->errors = $this->getErrorDetails( $e );
@@ -159,13 +156,11 @@  discard block
 block discarded – undo
159 156
 
160 157
 			$view->item = $this->controller->get();
161 158
 			$status = 201;
162
-		}
163
-		catch( \Aimeos\MShop\Exception $e )
159
+		} catch( \Aimeos\MShop\Exception $e )
164 160
 		{
165 161
 			$status = 404;
166 162
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
167
-		}
168
-		catch( \Exception $e )
163
+		} catch( \Exception $e )
169 164
 		{
170 165
 			$status = 500;
171 166
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.