Passed
Push — master ( 5d7c74...25725a )
by Aimeos
03:42
created
admin/jqadm/templates/dashboard/item-order-latest-standard.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-2020
6 6
  */
7 7
 
8
-$price = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	if( ( $order = $orders->get( $item->getBaseId() ) ) !== null )
11 10
 	{
12 11
 		$price = $order->getPrice();
@@ -15,8 +14,7 @@  discard block
 block discarded – undo
15 14
 };
16 15
 
17 16
 
18
-$name = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item )
19
-{
17
+$name = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
20 18
 	if( ( $order = $orders->get( $item->getBaseId() ) ) !== null )
21 19
 	{
22 20
 		$type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT;
@@ -34,8 +32,7 @@  discard block
 block discarded – undo
34 32
 };
35 33
 
36 34
 
37
-$payment = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item )
38
-{
35
+$payment = function( \Aimeos\Map $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
39 36
 	if( ( $order = $orders->get( $item->getBaseId() ) ) !== null )
40 37
 	{
41 38
 		$type = \Aimeos\MShop\Order\Item\Base\Service\Base::TYPE_PAYMENT;
@@ -51,8 +48,7 @@  discard block
 block discarded – undo
51 48
 };
52 49
 
53 50
 
54
-$status = function( array $list, $key )
55
-{
51
+$status = function( array $list, $key ) {
56 52
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
57 53
 };
58 54
 
Please login to merge, or discard this patch.
admin/jqadm/templates/customer/item-order-standard.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), 2017-2020
6 6
  */
7 7
 
8
-$price = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat )
9
-{
8
+$price = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item, $priceFormat ) {
10 9
 	if( isset( $orders[$item->getBaseId()] ) )
11 10
 	{
12 11
 		$price = $orders[$item->getBaseId()]->getPrice();
@@ -15,8 +14,7 @@  discard block
 block discarded – undo
15 14
 };
16 15
 
17 16
 
18
-$name = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
19
-{
17
+$name = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
20 18
 	if( isset( $orders[$item->getBaseId()] ) )
21 19
 	{
22 20
 		$addresses = $orders[$item->getBaseId()]->getAddresses();
@@ -36,8 +34,7 @@  discard block
 block discarded – undo
36 34
 };
37 35
 
38 36
 
39
-$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item )
40
-{
37
+$payment = function( array $orders, \Aimeos\MShop\Order\Item\Iface $item ) {
41 38
 	if( isset( $orders[$item->getBaseId()] ) )
42 39
 	{
43 40
 		$services = $orders[$item->getBaseId()]->getServices();
@@ -49,8 +46,7 @@  discard block
 block discarded – undo
49 46
 };
50 47
 
51 48
 
52
-$status = function( $list, $key )
53
-{
49
+$status = function( $list, $key ) {
54 50
 	return ( isset( $list[$key] ) ? $list[$key] : '' );
55 51
 };
56 52
 
Please login to merge, or discard this patch.