Completed
Pull Request — 4.0 (#3)
by David
02:52
created
src/RowBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,25 +58,25 @@
 block discarded – undo
58 58
     public function getRow()
59 59
     {
60 60
         $row = [];
61
-        foreach($this->mergedRows as $mergeRow) {
61
+        foreach ($this->mergedRows as $mergeRow) {
62 62
             $mergeRow->setParameters($this->params);
63
-            if($currentRow = $mergeRow->getRow()) {
63
+            if ($currentRow = $mergeRow->getRow()) {
64 64
                 $row += $currentRow;
65 65
             }
66 66
         }
67 67
 
68
-        foreach($this->datasourceAttributes as $key => $dataSourceAttribute) {
68
+        foreach ($this->datasourceAttributes as $key => $dataSourceAttribute) {
69 69
             /* @var $dataSourceAttribute DataSourceInterface */
70 70
             $dataSourceAttribute->setParameters($this->params);
71
-            if($currentData = $dataSourceAttribute->getData()) {
71
+            if ($currentData = $dataSourceAttribute->getData()) {
72 72
                 $row[$key] = $currentData;
73 73
             }
74 74
         }
75 75
 
76
-        foreach($this->rowAttributes as $key => $rowAttribute) {
76
+        foreach ($this->rowAttributes as $key => $rowAttribute) {
77 77
             /* @var $rowAttribute RowInterface */
78 78
             $rowAttribute->setParameters($this->params);
79
-            if($currentRow = $rowAttribute->getRow()) {
79
+            if ($currentRow = $rowAttribute->getRow()) {
80 80
                 $row[$key] = $currentRow;
81 81
             }
82 82
         }
Please login to merge, or discard this patch.
src/Mappers/ArrayMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $data = [];
53 53
         foreach ($this->dataSource->getData() as $row) {
54
-            $data [] = array_map(function (PickerInterface $picker) use ($row) {
54
+            $data [] = array_map(function(PickerInterface $picker) use ($row) {
55 55
                 return $picker->pick(new Row($row));
56 56
             }, $this->matchers);
57 57
         }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function setParameters(array $params)
65 65
     {
66
-        if(empty($this->params)) {
66
+        if (empty($this->params)) {
67 67
             $this->params = $params;
68 68
         }
69 69
         $this->dataSource->setParameters($this->params);
Please login to merge, or discard this patch.