Completed
Push — master ( 760181...46b74c )
by Aimeos
02:24
created
client/jsonapi/src/Client/JsonApi/Service/Standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
 					$view->items = $provider->getServiceItem();
59 59
 					$view->total = 1;
60 60
 				}
61
-			}
62
-			else
61
+			} else
63 62
 			{
64 63
 				$attributes = $prices = $items = [];
65 64
 				$type = $view->param( 'filter/cs_type' );
@@ -81,16 +80,14 @@  discard block
 block discarded – undo
81 80
 			}
82 81
 
83 82
 			$status = 200;
84
-		}
85
-		catch( \Aimeos\MShop\Exception $e )
83
+		} catch( \Aimeos\MShop\Exception $e )
86 84
 		{
87 85
 			$status = 404;
88 86
 			$view->errors = array( array(
89 87
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
90 88
 				'detail' => $e->getTraceAsString(),
91 89
 			) );
92
-		}
93
-		catch( \Exception $e )
90
+		} catch( \Exception $e )
94 91
 		{
95 92
 			$status = 500;
96 93
 			$view->errors = array( array(
Please login to merge, or discard this patch.
client/jsonapi/templates/service/standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,8 +156,7 @@
 block discarded – undo
156 156
 					$data[] = $entryFcn( $item, $prices, $feConfig );
157 157
 					$included = array_merge( $included, $refFcn( $item ) );
158 158
 				}
159
-			}
160
-			else
159
+			} else
161 160
 			{
162 161
 				$data = $entryFcn( $this->items, $prices, $feConfig );
163 162
 				$included = $refFcn( $this->items );
Please login to merge, or discard this patch.