Completed
Push — master ( 92e547...8c9c9d )
by Aimeos
02:47
created
client/jsonapi/src/Client/JsonApi/Factory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@
 block discarded – undo
136 136
 			if( ( $client = @call_user_func_array( array( $factory, 'createClient' ), $args ) ) === false ) {
137 137
 				throw new \Aimeos\Client\JsonApi\Exception( sprintf( 'Invalid factory "%1$s"', $factory ), 400 );
138 138
 			}
139
-		}
140
-		else
139
+		} else
141 140
 		{
142 141
 			$client = self::createClientRoot( $context, $view, $templatePaths, $path, $name );
143 142
 		}
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Attribute/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,16 +44,14 @@
 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 = array( array(
52 51
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
53 52
 				'detail' => $e->getTraceAsString(),
54 53
 			) );
55
-		}
56
-		catch( \Exception $e )
54
+		} catch( \Exception $e )
57 55
 		{
58 56
 			$status = 500;
59 57
 			$view->errors = array( array(
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Locale/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,16 +44,14 @@
 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 = array( array(
52 51
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
53 52
 				'detail' => $e->getTraceAsString(),
54 53
 			) );
55
-		}
56
-		catch( \Exception $e )
54
+		} catch( \Exception $e )
57 55
 		{
58 56
 			$status = 500;
59 57
 			$view->errors = array( array(
Please login to merge, or discard this patch.
client/jsonapi/templates/locale/get-default.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
83 83
 				foreach( $items as $localeItem ) {
84 84
 					$data[] = $entryFcn( $localeItem );
85 85
 				}
86
-			}
87
-			else
86
+			} else
88 87
 			{
89 88
 				$data = $entryFcn( $items );
90 89
 			}
Please login to merge, or discard this patch.
client/jsonapi/tests/Client/JsonApi/Basket/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
268 268
 		$baseManager = \Aimeos\MShop\Factory::createManager( $this->context, 'order/base' );
269 269
 
270 270
 		$search = $baseManager->createSearch();
271
-		$search->setConditions( $search->compare( '==', 'order.base.price', '672.00') );
271
+		$search->setConditions( $search->compare( '==', 'order.base.price', '672.00' ) );
272 272
 
273 273
 		$items = $baseManager->searchItems( $search );
274 274
 
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Basket/Standard.php 1 patch
Braces   +9 added lines, -18 removed lines patch added patch discarded remove patch
@@ -60,16 +60,14 @@  discard block
 block discarded – undo
60 60
 			$type = $view->param( 'id', 'default' );
61 61
 			$view->items = $this->controller->setType( $type )->clear()->get();
62 62
 			$view->total = 1;
63
-		}
64
-		catch( \Aimeos\MShop\Exception $e )
63
+		} catch( \Aimeos\MShop\Exception $e )
65 64
 		{
66 65
 			$status = 404;
67 66
 			$view->errors = array( array(
68 67
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
69 68
 				'detail' => $e->getTraceAsString(),
70 69
 			) );
71
-		}
72
-		catch( \Exception $e )
70
+		} catch( \Exception $e )
73 71
 		{
74 72
 			$status = 500;
75 73
 			$view->errors = array( array(
@@ -100,8 +98,7 @@  discard block
 block discarded – undo
100 98
 			try
101 99
 			{
102 100
 				$view->items = $this->controller->load( $id, $this->getParts( $view ) );
103
-			}
104
-			catch( \Aimeos\MShop\Exception $e )
101
+			} catch( \Aimeos\MShop\Exception $e )
105 102
 			{
106 103
 				$view->items = $this->controller->setType( $id )->get();
107 104
 				$allow = true;
@@ -109,16 +106,14 @@  discard block
 block discarded – undo
109 106
 
110 107
 			$view->total = 1;
111 108
 			$status = 200;
112
-		}
113
-		catch( \Aimeos\MShop\Exception $e )
109
+		} catch( \Aimeos\MShop\Exception $e )
114 110
 		{
115 111
 			$status = 404;
116 112
 			$view->errors = array( array(
117 113
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
118 114
 				'detail' => $e->getTraceAsString(),
119 115
 			) );
120
-		}
121
-		catch( \Exception $e )
116
+		} catch( \Exception $e )
122 117
 		{
123 118
 			$status = 500;
124 119
 			$view->errors = array( array(
@@ -157,16 +152,14 @@  discard block
 block discarded – undo
157 152
 			$view->total = 1;
158 153
 
159 154
 			$status = 200;
160
-		}
161
-		catch( \Aimeos\MShop\Exception $e )
155
+		} catch( \Aimeos\MShop\Exception $e )
162 156
 		{
163 157
 			$status = 404;
164 158
 			$view->errors = array( array(
165 159
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
166 160
 				'detail' => $e->getTraceAsString(),
167 161
 			) );
168
-		}
169
-		catch( \Exception $e )
162
+		} catch( \Exception $e )
170 163
 		{
171 164
 			$status = 500;
172 165
 			$view->errors = array( array(
@@ -198,16 +191,14 @@  discard block
 block discarded – undo
198 191
 			$view->total = 1;
199 192
 
200 193
 			$status = 200;
201
-		}
202
-		catch( \Aimeos\MShop\Exception $e )
194
+		} catch( \Aimeos\MShop\Exception $e )
203 195
 		{
204 196
 			$status = 404;
205 197
 			$view->errors = array( array(
206 198
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
207 199
 				'detail' => $e->getTraceAsString(),
208 200
 			) );
209
-		}
210
-		catch( \Exception $e )
201
+		} catch( \Exception $e )
211 202
 		{
212 203
 			$status = 500;
213 204
 			$view->errors = array( array(
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Basket/Product/Standard.php 1 patch
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 					$this->controller->deleteProduct( $entry->id );
80 80
 				}
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->controller->deleteProduct( $relId );
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(
@@ -142,8 +139,7 @@  discard block
 block discarded – undo
142 139
 						}
143 140
 					}
144 141
 				}
145
-			}
146
-			catch( \Aimeos\MShop\Exception $e )
142
+			} catch( \Aimeos\MShop\Exception $e )
147 143
 			{
148 144
 				$basket = $this->controller->setType( $id )->get();
149 145
 				$methods = 'DELETE,GET,PATCH,POST';
@@ -159,16 +155,14 @@  discard block
 block discarded – undo
159 155
 
160 156
 			$view->total = count( $view->items );
161 157
 			$status = 200;
162
-		}
163
-		catch( \Aimeos\MShop\Exception $e )
158
+		} catch( \Aimeos\MShop\Exception $e )
164 159
 		{
165 160
 			$status = 404;
166 161
 			$view->errors = array( array(
167 162
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
168 163
 				'detail' => $e->getTraceAsString(),
169 164
 			) );
170
-		}
171
-		catch( \Exception $e )
165
+		} catch( \Exception $e )
172 166
 		{
173 167
 			$status = 500;
174 168
 			$view->errors = array( array(
@@ -253,16 +247,14 @@  discard block
 block discarded – undo
253 247
 			$view->total = 1;
254 248
 
255 249
 		$status = 200;
256
-		}
257
-		catch( \Aimeos\MShop\Exception $e )
250
+		} catch( \Aimeos\MShop\Exception $e )
258 251
 		{
259 252
 			$status = 404;
260 253
 			$view->errors = array( array(
261 254
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
262 255
 				'detail' => $e->getTraceAsString(),
263 256
 			) );
264
-		}
265
-		catch( \Exception $e )
257
+		} catch( \Exception $e )
266 258
 		{
267 259
 			$status = 500;
268 260
 			$view->errors = array( array(
@@ -321,16 +313,14 @@  discard block
 block discarded – undo
321 313
 			$view->total = 1;
322 314
 
323 315
 			$status = 201;
324
-		}
325
-		catch( \Aimeos\MShop\Exception $e )
316
+		} catch( \Aimeos\MShop\Exception $e )
326 317
 		{
327 318
 			$status = 404;
328 319
 			$view->errors = array( array(
329 320
 				'title' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ),
330 321
 				'detail' => $e->getTraceAsString(),
331 322
 			) );
332
-		}
333
-		catch( \Exception $e )
323
+		} catch( \Exception $e )
334 324
 		{
335 325
 			$status = 500;
336 326
 			$view->errors = array( array(
Please login to merge, or discard this patch.
client/jsonapi/templates/basket/product-default.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
 				foreach( $items as $pos => $orderProductItem ) {
100 100
 					$data[] = $entryFcn( $orderProductItem, $pos );
101 101
 				}
102
-			}
103
-			else
102
+			} else
104 103
 			{
105 104
 				$data = $entryFcn( $items );
106 105
 			}
Please login to merge, or discard this patch.