Completed
Push — master ( 3fea31...649aac )
by Aimeos
03:31
created
client/jsonapi/src/Client/JsonApi/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,7 @@
 block discarded – undo
102 102
 
103 103
 			$view->resources = (array) $resources;
104 104
 			$status = 200;
105
-		}
106
-		catch( \Exception $e )
105
+		} catch( \Exception $e )
107 106
 		{
108 107
 			$status = 500;
109 108
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Customer/Address/Standard.php 1 patch
Braces   +14 added lines, -28 removed lines patch added patch discarded remove patch
@@ -77,25 +77,21 @@  discard block
 block discarded – undo
77 77
 
78 78
 					$this->controller->deleteAddressItem( $entry->id );
79 79
 				}
80
-			}
81
-			else
80
+			} else
82 81
 			{
83 82
 				$this->controller->deleteAddressItem( $relId );
84 83
 			}
85 84
 
86 85
 			$status = 200;
87
-		}
88
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
86
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
89 87
 		{
90 88
 			$status = 403;
91 89
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
92
-		}
93
-		catch( \Aimeos\MShop\Exception $e )
90
+		} catch( \Aimeos\MShop\Exception $e )
94 91
 		{
95 92
 			$status = 404;
96 93
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
97
-		}
98
-		catch( \Exception $e )
94
+		} catch( \Exception $e )
99 95
 		{
100 96
 			$status = 500;
101 97
 			$view->errors = $this->getErrorDetails( $e );
@@ -125,26 +121,22 @@  discard block
 block discarded – undo
125 121
 			{
126 122
 				$view->items = $cntl->getItem( $view->param( 'id' ), ['customer/address'] )->getAddressItems();
127 123
 				$view->total = count( $view->items );
128
-			}
129
-			else
124
+			} else
130 125
 			{
131 126
 				$view->items = $cntl->getAddressItem( $relId );
132 127
 				$view->total = 1;
133 128
 			}
134 129
 
135 130
 			$status = 200;
136
-		}
137
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
131
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
138 132
 		{
139 133
 			$status = 403;
140 134
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
141
-		}
142
-		catch( \Aimeos\MShop\Exception $e )
135
+		} catch( \Aimeos\MShop\Exception $e )
143 136
 		{
144 137
 			$status = 404;
145 138
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
146
-		}
147
-		catch( \Exception $e )
139
+		} catch( \Exception $e )
148 140
 		{
149 141
 			$status = 500;
150 142
 			$view->errors = $this->getErrorDetails( $e );
@@ -178,18 +170,15 @@  discard block
 block discarded – undo
178 170
 			$view->items = $cntl->editAddressItem( $view->param( 'relatedid' ), (array) $payload->data->attributes );
179 171
 			$view->total = 1;
180 172
 			$status = 200;
181
-		}
182
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
173
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
183 174
 		{
184 175
 			$status = 403;
185 176
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
186
-		}
187
-		catch( \Aimeos\MShop\Exception $e )
177
+		} catch( \Aimeos\MShop\Exception $e )
188 178
 		{
189 179
 			$status = 404;
190 180
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
191
-		}
192
-		catch( \Exception $e )
181
+		} catch( \Exception $e )
193 182
 		{
194 183
 			$status = 500;
195 184
 			$view->errors = $this->getErrorDetails( $e );
@@ -236,18 +225,15 @@  discard block
 block discarded – undo
236 225
 			$view->total = count( $list );
237 226
 			$view->items = $list;
238 227
 			$status = 201;
239
-		}
240
-		catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
228
+		} catch( \Aimeos\Controller\Frontend\Customer\Exception $e )
241 229
 		{
242 230
 			$status = 403;
243 231
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
244
-		}
245
-		catch( \Aimeos\MShop\Exception $e )
232
+		} catch( \Aimeos\MShop\Exception $e )
246 233
 		{
247 234
 			$status = 404;
248 235
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
249
-		}
250
-		catch( \Exception $e )
236
+		} catch( \Exception $e )
251 237
 		{
252 238
 			$status = 500;
253 239
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Factory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,7 @@
 block discarded – undo
131 131
 			if( ( $client = @call_user_func_array( array( $factory, 'createClient' ), $args ) ) === false ) {
132 132
 				throw new \Aimeos\Client\JsonApi\Exception( sprintf( 'Invalid factory "%1$s"', $factory ), 400 );
133 133
 			}
134
-		}
135
-		else
134
+		} else
136 135
 		{
137 136
 			$client = self::createClientRoot( $context, $path, $name );
138 137
 		}
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Common/Factory/Base.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,7 @@
 block discarded – undo
99 99
 				$decorators = $config->get( 'client/jsonapi/' . $dpath . 'decorators/local', [] );
100 100
 				$client = self::addDecorators( $client, $decorators, $classprefix, $context, $path );
101 101
 			}
102
-		}
103
-		else
102
+		} else
104 103
 		{
105 104
 			$classprefix = '\\Aimeos\\Client\\JsonApi\\Common\\Decorator\\';
106 105
 			$client = self::addDecorators( $client, $decorators, $classprefix, $context, $path );
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Subscription/Standard.php 1 patch
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,18 +43,15 @@  discard block
 block discarded – undo
43 43
 			$view->total = 1;
44 44
 
45 45
 			$status = 200;
46
-		}
47
-		catch( \Aimeos\Controller\Frontend\Exception $e )
46
+		} catch( \Aimeos\Controller\Frontend\Exception $e )
48 47
 		{
49 48
 			$status = 403;
50 49
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
51
-		}
52
-		catch( \Aimeos\MShop\Exception $e )
50
+		} catch( \Aimeos\MShop\Exception $e )
53 51
 		{
54 52
 			$status = 404;
55 53
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
56
-		}
57
-		catch( \Exception $e )
54
+		} catch( \Exception $e )
58 55
 		{
59 56
 			$status = 500;
60 57
 			$view->errors = $this->getErrorDetails( $e );
@@ -83,8 +80,7 @@  discard block
 block discarded – undo
83 80
 			{
84 81
 				$view->items = $cntl->getItem( $id );
85 82
 				$view->total = 1;
86
-			}
87
-			else
83
+			} else
88 84
 			{
89 85
 				$total = 0;
90 86
 				$filter = $cntl->createFilter();
@@ -95,18 +91,15 @@  discard block
 block discarded – undo
95 91
 			}
96 92
 
97 93
 			$status = 200;
98
-		}
99
-		catch( \Aimeos\Controller\Frontend\Exception $e )
94
+		} catch( \Aimeos\Controller\Frontend\Exception $e )
100 95
 		{
101 96
 			$status = 403;
102 97
 			$view->errors = $this->getErrorDetails( $e, 'controller/frontend' );
103
-		}
104
-		catch( \Aimeos\MShop\Exception $e )
98
+		} catch( \Aimeos\MShop\Exception $e )
105 99
 		{
106 100
 			$status = 404;
107 101
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
108
-		}
109
-		catch( \Exception $e )
102
+		} catch( \Exception $e )
110 103
 		{
111 104
 			$status = 500;
112 105
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.
client/jsonapi/templates/subscription/standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 				foreach( $items as $item ) {
102 102
 					$data[] = $entryFcn( $item );
103 103
 				}
104
-			}
105
-			else
104
+			} else
106 105
 			{
107 106
 				$data = $entryFcn( $items );
108 107
 			}
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Supplier/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,13 +44,11 @@
 block discarded – undo
44 44
 			}
45 45
 
46 46
 			$status = 200;
47
-		}
48
-		catch( \Aimeos\MShop\Exception $e )
47
+		} catch( \Aimeos\MShop\Exception $e )
49 48
 		{
50 49
 			$status = 404;
51 50
 			$view->errors = $this->getErrorDetails( $e, 'mshop' );
52
-		}
53
-		catch( \Exception $e )
51
+		} catch( \Exception $e )
54 52
 		{
55 53
 			$status = 500;
56 54
 			$view->errors = $this->getErrorDetails( $e );
Please login to merge, or discard this patch.
client/jsonapi/templates/product/standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,8 +295,7 @@
 block discarded – undo
295 295
 					$data[] = $entryFcn( $item );
296 296
 					$included = array_merge( $included, $flatFcn( $inclFcn( $item, [] ) ) );
297 297
 				}
298
-			}
299
-			else
298
+			} else
300 299
 			{
301 300
 				$data = $entryFcn( $items );
302 301
 				$included = $flatFcn( $inclFcn( $items, [] ) );
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
@@ -211,8 +211,7 @@
 block discarded – undo
211 211
 					$data[] = $entryFcn( $item, $prices, $feConfig );
212 212
 					$included = array_merge( $included, $flatFcn( $inclFcn( $item ) ) );
213 213
 				}
214
-			}
215
-			else
214
+			} else
216 215
 			{
217 216
 				$data = $entryFcn( $this->items, $prices, $feConfig );
218 217
 				$included = $flatFcn( $inclFcn( $this->items ) );
Please login to merge, or discard this patch.