Passed
Pull Request — master (#8)
by
unknown
03:13
created
client/jsonapi/src/Client/JsonApi/Stock/Standard.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,9 +158,11 @@
 block discarded – undo
158 158
 		$params = $view->param( 'filter', [] );
159 159
 		$prodIds = (array) $view->param( 'filter/s_prodid', [] );
160 160
 
161
-		if( isset( $params['s_prodcode'] ) ) // backwards compatibility
161
+		if( isset( $params['s_prodcode'] ) ) {
162
+			// backwards compatibility
162 163
 		{
163 164
 			$manager = \Aimeos\MShop::create( $this->getContext(), 'product' );
165
+		}
164 166
 			$filter = $manager->filter()
165 167
 				->slice( 0, count( (array) $params['s_prodcode'] ) )
166 168
 				->add( ['product.code' => $view->param( 'filter/s_prodcode' )] );
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Product/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@
 block discarded – undo
81 81
 			 */
82 82
 			$tplconf = 'client/jsonapi/product/template-aggregate';
83 83
 			$default = 'aggregate-standard';
84
-		}
85
-		else
84
+		} else
86 85
 		{
87 86
 			/** client/jsonapi/product/template
88 87
 			 * Relative path to the product JSON API template
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Review/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,8 +225,7 @@
 block discarded – undo
225 225
 			 */
226 226
 			$tplconf = 'client/jsonapi/review/template-aggregate';
227 227
 			$default = 'aggregate-standard';
228
-		}
229
-		else
228
+		} else
230 229
 		{
231 230
 			/** client/jsonapi/review/template
232 231
 			 * Relative path to the review JSON API template
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Order/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
 			{
49 49
 				$view->items = $cntl->get( $id );
50 50
 				$view->total = 1;
51
-			}
52
-			else
51
+			} else
53 52
 			{
54 53
 				$total = 0;
55 54
 				$items = $cntl->sort( $view->param( 'sort', '-order.id' ) )
Please login to merge, or discard this patch.