@@ -58,25 +58,25 @@ |
||
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 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | $data = []; |
53 | 53 | foreach ($this->dataSource->getData() as $row) { |
54 | - foreach ($this->matchers as $picker){ |
|
54 | + foreach ($this->matchers as $picker) { |
|
55 | 55 | if (!($return = $picker->pick(new Row($row)))) { |
56 | 56 | continue; |
57 | 57 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function setParameters(array $params) |
68 | 68 | { |
69 | - if(empty($this->params)) { |
|
69 | + if (empty($this->params)) { |
|
70 | 70 | $this->params = $params; |
71 | 71 | } |
72 | 72 | $this->dataSource->setParameters($this->params); |