Passed
Push — master ( dadcea...270945 )
by Aimeos
04:10
created
client/jsonapi/templates/aggregate-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,11 @@
 block discarded – undo
36 36
 	<?php if( isset( $this->errors ) ) : ?>
37 37
 		"errors": <?= json_encode( $this->errors, JSON_PRETTY_PRINT ); ?>
38 38
 
39
-	<?php else : ?>
40
-		"data": <?= json_encode( $entries ); ?>
39
+	<?php else {
40
+	: ?>
41
+		"data": <?= json_encode( $entries );
42
+}
43
+?>
41 44
 
42 45
 	<?php endif; ?>
43 46
 }
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Customer/Relationships/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@  discard block
 block discarded – undo
66 66
 				}
67 67
 
68 68
 				$cntl->store();
69
-			}
70
-			else
69
+			} else
71 70
 			{
72 71
 				if( isset( $items[$relId] ) ) {
73 72
 					$cntl->deleteListItem( $items[$relId]->getDomain(), $items[$relId] )->store();
@@ -119,8 +118,7 @@  discard block
 block discarded – undo
119 118
 			{
120 119
 				$view->items = $items;
121 120
 				$view->total = count( $items );
122
-			}
123
-			else
121
+			} else
124 122
 			{
125 123
 				$view->items = isset( $items[$relId] ) ? $items[$relId] : null;
126 124
 				$view->total = empty( $view->items ) ? 0 : 1;
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
@@ -43,8 +43,7 @@
 block discarded – undo
43 43
 			{
44 44
 				$view->items = $cntl->get( $id );
45 45
 				$view->total = 1;
46
-			}
47
-			else
46
+			} else
48 47
 			{
49 48
 				$total = 0;
50 49
 				$items = $cntl->parse( (array) $view->param( 'filter', [] ) )
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.
client/jsonapi/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.
lib/custom/src/MW/View/Helper/Jincluded/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
 			foreach( $item as $entry ) {
40 40
 				$this->entry( $entry, $fields, $fcn );
41 41
 			}
42
-		}
43
-		else
42
+		} else
44 43
 		{
45 44
 			$this->entry( $item, $fields, $fcn );
46 45
 		}
Please login to merge, or discard this patch.
client/jsonapi/templates/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.
client/jsonapi/templates/attribute/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\Attribute\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
41
-{
40
+$entryFcn = function( \Aimeos\MShop\Attribute\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 );
@@ -129,8 +128,7 @@  discard block
 block discarded – undo
129 128
 				foreach( $items as $item ) {
130 129
 					$data[] = $entryFcn( $item );
131 130
 				}
132
-			}
133
-			else
131
+			} else
134 132
 			{
135 133
 				$data = $entryFcn( $items );
136 134
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/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.