Passed
Push — master ( 8aaa8e...6a4321 )
by Aimeos
02:10
created
client/jsonapi/src/Client/JsonApi/Customer/Property/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
 				}
64 64
 
65 65
 				$cntl->store();
66
-			}
67
-			else
66
+			} else
68 67
 			{
69 68
 				if( isset( $items[$relId] ) ) {
70 69
 					$cntl->deletePropertyItem( $items[$relId] )->store();
@@ -113,8 +112,7 @@  discard block
 block discarded – undo
113 112
 			{
114 113
 				$view->items = $items;
115 114
 				$view->total = count( $items );
116
-			}
117
-			else
115
+			} else
118 116
 			{
119 117
 				$view->items = isset( $items[$relId] ) ? $items[$relId] : null;
120 118
 				$view->total = empty( $view->items ) ? 0 : 1;
Please login to merge, or discard this patch.
client/jsonapi/templates/customer/property/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
 }
26 26
 
27 27
 
28
-$entryFcn = function( \Aimeos\MShop\Common\Item\Property\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
29
-{
28
+$entryFcn = function( \Aimeos\MShop\Common\Item\Property\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
30 29
 	$id = $item->getId();
31 30
 	$attributes = $item->toArray();
32 31
 	$type = $item->getResourceType();
@@ -85,8 +84,7 @@  discard block
 block discarded – undo
85 84
 				foreach( $items as $propItem ) {
86 85
 					$data[] = $entryFcn( $propItem );
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$data = $entryFcn( $items );
92 90
 			}
Please login to merge, or discard this patch.