Passed
Push — master ( 178506...ed95db )
by Aimeos
16:34 queued 12:33
created
templates/admin/jqadm/dashboard/item-order-latest.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2016-2025
6 6
  */
7 7
 
8
-$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	$price = 0;
11 10
 
12 11
 	foreach( $item->getProducts() as $product )
@@ -20,8 +19,7 @@  discard block
 block discarded – undo
20 19
 };
21 20
 
22 21
 
23
-$name = function( \Aimeos\MShop\Order\Item\Iface $item )
24
-{
22
+$name = function( \Aimeos\MShop\Order\Item\Iface $item ) {
25 23
 	$type = \Aimeos\MShop\Order\Item\Address\Base::TYPE_PAYMENT;
26 24
 
27 25
 	if( ( $address = current( $item->getAddress( $type ) ) ) === false ) {
@@ -32,8 +30,7 @@  discard block
 block discarded – undo
32 30
 };
33 31
 
34 32
 
35
-$payment = function( \Aimeos\MShop\Order\Item\Iface $item )
36
-{
33
+$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) {
37 34
 	$codes = [];
38 35
 	$type = \Aimeos\MShop\Order\Item\Service\Base::TYPE_PAYMENT;
39 36
 
@@ -45,8 +42,7 @@  discard block
 block discarded – undo
45 42
 };
46 43
 
47 44
 
48
-$status = function( array $list, $key )
49
-{
45
+$status = function( array $list, $key ) {
50 46
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
51 47
 };
52 48
 
Please login to merge, or discard this patch.
templates/admin/jqadm/customer/item-order.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,15 +5,13 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2025
6 6
  */
7 7
 
8
-$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	$price = $item->getPrice();
11 10
 	return sprintf( $priceFormat, $price->getValue(), $price->getCurrencyId() );
12 11
 };
13 12
 
14 13
 
15
-$name = function( \Aimeos\MShop\Order\Item\Iface $item )
16
-{
14
+$name = function( \Aimeos\MShop\Order\Item\Iface $item ) {
17 15
 	$addresses = $item->getAddresses();
18 16
 
19 17
 	if( !isset( $addresses[\Aimeos\MShop\Order\Item\Address\Base::TYPE_PAYMENT] ) ) {
@@ -30,8 +28,7 @@  discard block
 block discarded – undo
30 28
 };
31 29
 
32 30
 
33
-$payment = function( \Aimeos\MShop\Order\Item\Iface $item )
34
-{
31
+$payment = function( \Aimeos\MShop\Order\Item\Iface $item ) {
35 32
 	$services = $item->getServices();
36 33
 
37 34
 	if( isset( $services[\Aimeos\MShop\Order\Item\Service\Base::TYPE_PAYMENT] ) ) {
@@ -40,8 +37,7 @@  discard block
 block discarded – undo
40 37
 };
41 38
 
42 39
 
43
-$status = function( $list, $key )
44
-{
40
+$status = function( $list, $key ) {
45 41
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
46 42
 };
47 43
 
Please login to merge, or discard this patch.