@@ -24,13 +24,13 @@ discard block |
||
24 | 24 | |
25 | 25 | if ($this->usingLegacyFieldType()) { |
26 | 26 | $rows = array(); |
27 | - foreach($fieldValue as $data) { |
|
27 | + foreach ($fieldValue as $data) { |
|
28 | 28 | $rows[] = new \EzSystems\MatrixBundle\FieldType\Matrix\Row($data); |
29 | 29 | } |
30 | 30 | return new \EzSystems\MatrixBundle\FieldType\Matrix\Value($rows); |
31 | 31 | } else { |
32 | 32 | $rows = array(); |
33 | - foreach($fieldValue as $data) { |
|
33 | + foreach ($fieldValue as $data) { |
|
34 | 34 | $rows[] = new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value\Row($data); |
35 | 35 | } |
36 | 36 | return new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value($rows); |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | $data = array(); |
43 | 43 | |
44 | 44 | if ($this->usingLegacyFieldType()) { |
45 | - foreach($fieldValue->getRows() as $row) { |
|
45 | + foreach ($fieldValue->getRows() as $row) { |
|
46 | 46 | $data[] = $row->toArray(); |
47 | 47 | } |
48 | 48 | } else { |
49 | - foreach($fieldValue->getRows() as $row) { |
|
49 | + foreach ($fieldValue->getRows() as $row) { |
|
50 | 50 | $data[] = $row->getCells(); |
51 | 51 | } |
52 | 52 | } |