Passed
Push — master ( 8d04e7...7deac0 )
by Aimeos
02:42
created
src/Client/JsonApi/Basket/Address/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 
79 79
 					$this->controller->deleteAddress( $entry->id );
80 80
 				}
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->controller->deleteAddress( $relId );
85 84
 			}
Please login to merge, or discard this patch.
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.
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.
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.
src/Client/JsonApi/Subscription/Standard.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
 			{
84 84
 				$view->items = $cntl->get( $id );
85 85
 				$view->total = 1;
86
-			}
87
-			else
86
+			} else
88 87
 			{
89 88
 				$total = 0;
90 89
 				$items = $cntl->slice( $view->param( 'page/offset', 0 ), $view->param( 'page/limit', 25 ) )
Please login to merge, or discard this patch.
templates/client/jsonapi/review/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
 }
27 27
 
28 28
 
29
-$entryFcn = function( \Aimeos\MShop\Review\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
30
-{
29
+$entryFcn = function( \Aimeos\MShop\Review\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
31 30
 	$id = $item->getId();
32 31
 	$attributes = $item->toArray();
33 32
 	$type = $item->getResourceType();
@@ -85,8 +84,7 @@  discard block
 block discarded – undo
85 84
 				foreach( $items as $item ) {
86 85
 					$data[] = $entryFcn( $item );
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$data = $entryFcn( $items );
92 90
 			}
Please login to merge, or discard this patch.
templates/client/jsonapi/supplier/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@  discard block
 block discarded – undo
37 37
 }
38 38
 
39 39
 
40
-$entryFcn = function( \Aimeos\MShop\Supplier\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
41
-{
40
+$entryFcn = function( \Aimeos\MShop\Supplier\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
42 41
 	$id = $item->getId();
43 42
 	$type = $item->getResourceType();
44 43
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
 				foreach( $items as $item ) {
131 130
 					$data[] = $entryFcn( $item );
132 131
 				}
133
-			}
134
-			else
132
+			} else
135 133
 			{
136 134
 				$data = $entryFcn( $items );
137 135
 			}
Please login to merge, or discard this patch.
templates/client/jsonapi/catalog/standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 
32
-$entryFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
33
-{
32
+$entryFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
34 33
 	if( $item->isAvailable() === false ) {
35 34
 		return [];
36 35
 	}
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
 };
81 80
 
82 81
 
83
-$catFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item, array $entry ) use ( $target, $cntl, $action, $config )
84
-{
82
+$catFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item, array $entry ) use ( $target, $cntl, $action, $config ) {
85 83
 	$params = ['resource' => 'catalog', 'id' => $item->getId()];
86 84
 	$entry['links'] = [
87 85
 		'self' => [
@@ -125,8 +123,7 @@  discard block
 block discarded – undo
125 123
 				foreach( $items as $item ) {
126 124
 					$data[] = $entryFcn( $item );
127 125
 				}
128
-			}
129
-			else
126
+			} else
130 127
 			{
131 128
 				$data = $entryFcn( $items );
132 129
 			}
Please login to merge, or discard this patch.
templates/client/jsonapi/subscription/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
 }
25 25
 
26 26
 
27
-$entryFcn = function( \Aimeos\MShop\Subscription\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
28
-{
27
+$entryFcn = function( \Aimeos\MShop\Subscription\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
29 28
 	$id = $item->getId();
30 29
 	$attributes = $item->toArray();
31 30
 	$type = $item->getResourceType();
@@ -85,8 +84,7 @@  discard block
 block discarded – undo
85 84
 				foreach( $items as $item ) {
86 85
 					$data[] = $entryFcn( $item );
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$data = $entryFcn( $items );
92 90
 			}
Please login to merge, or discard this patch.