Passed
Push — master ( 2fb416...eb1ffc )
by Gaetano
03:41
created
Core/FieldHandler/EzMatrix.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
             if (count($fieldValue) === 2 && isset($fieldValue['columns']) && isset($fieldValue['rows'])) {
29 29
                 $fieldValue = $fieldValue['rows'];
30 30
             }
31
-            foreach($fieldValue as $data) {
31
+            foreach ($fieldValue as $data) {
32 32
                 $rows[] = new \EzSystems\MatrixBundle\FieldType\Matrix\Row($data);
33 33
             }
34 34
             return new \EzSystems\MatrixBundle\FieldType\Matrix\Value($rows);
35 35
         } else {
36 36
             $rows = array();
37
-            foreach($fieldValue as $data) {
37
+            foreach ($fieldValue as $data) {
38 38
                 $rows[] = new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value\Row($data);
39 39
             }
40 40
             return new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value($rows);
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
         $data = array();
47 47
 
48 48
         if ($this->usingLegacyFieldType()) {
49
-            foreach($fieldValue->getRows() as $row) {
49
+            foreach ($fieldValue->getRows() as $row) {
50 50
                 $data[] = $row->toArray();
51 51
             }
52 52
         } else {
53
-            foreach($fieldValue->getRows() as $row) {
53
+            foreach ($fieldValue->getRows() as $row) {
54 54
                 $data[] = $row->getCells();
55 55
             }
56 56
         }
Please login to merge, or discard this patch.