Completed
Push — master ( 265226...d145d9 )
by Aimeos
02:59
created
src/Controller/Common/Order/Export/Csv/Processor/Service/Standard.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,25 +40,25 @@  discard block
 block discarded – undo
40 40
 	 * @param \Aimeos\MShop\Order\Item\Base\Iface $order Full order with associated items
41 41
 	 * @return array Two dimensional associative list of order data representing the lines in CSV
42 42
 	 */
43
-	public function process( \Aimeos\MShop\Order\Item\Iface $invoice, \Aimeos\MShop\Order\Item\Base\Iface $order )
43
+	public function process(\Aimeos\MShop\Order\Item\Iface $invoice, \Aimeos\MShop\Order\Item\Base\Iface $order)
44 44
 	{
45 45
 		$result = [];
46 46
 		$services = $order->getServices();
47 47
 
48
-		krsort( $services );
48
+		krsort($services);
49 49
 
50
-		foreach( $services as $list )
50
+		foreach ($services as $list)
51 51
 		{
52
-			foreach( $list as $item )
52
+			foreach ($list as $item)
53 53
 			{
54 54
 				$data = [];
55 55
 				$list = $item->toArray();
56 56
 
57
-				foreach( $item->getAttributes() as $attrItem )
57
+				foreach ($item->getAttributes() as $attrItem)
58 58
 				{
59
-					foreach( $attrItem->toArray() as $key => $value )
59
+					foreach ($attrItem->toArray() as $key => $value)
60 60
 					{
61
-						if( isset( $list[$key] ) ) {
61
+						if (isset($list[$key])) {
62 62
 							$list[$key] .= "\n" . $value;
63 63
 						} else {
64 64
 							$list[$key] = $value;
@@ -66,16 +66,16 @@  discard block
 block discarded – undo
66 66
 					}
67 67
 				}
68 68
 
69
-				foreach( $this->getMapping() as $pos => $key )
69
+				foreach ($this->getMapping() as $pos => $key)
70 70
 				{
71
-					if( array_key_exists( $key, $list ) ) {
71
+					if (array_key_exists($key, $list)) {
72 72
 						$data[$pos] = $list[$key];
73 73
 					} else {
74 74
 						$data[$pos] = '';
75 75
 					}
76 76
 				}
77 77
 
78
-				ksort( $data );
78
+				ksort($data);
79 79
 				$result[] = $data;
80 80
 			}
81 81
 		}
Please login to merge, or discard this patch.