Completed
Push — 4.0 ( 1243ad...49bc51 )
by David
04:47
created
src/RowBuilder.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: dam
5
- * Date: 04/12/15
6
- * Time: 15:19
7
- */
3
+     * Created by PhpStorm.
4
+     * User: dam
5
+     * Date: 04/12/15
6
+     * Time: 15:19
7
+     */
8 8
 
9 9
 namespace Mouf\Utils\DataSource;
10 10
 
Please login to merge, or discard this 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/Interfaces/DataSourceInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: dam
5
- * Date: 02/12/15
6
- * Time: 18:30
7
- */
3
+     * Created by PhpStorm.
4
+     * User: dam
5
+     * Date: 02/12/15
6
+     * Time: 18:30
7
+     */
8 8
 
9 9
 namespace Mouf\Utils\DataSource\Interfaces;
10 10
 
Please login to merge, or discard this patch.
src/Mappers/RowMapper.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: dam
5
- * Date: 03/12/15
6
- * Time: 10:38
7
- */
3
+     * Created by PhpStorm.
4
+     * User: dam
5
+     * Date: 03/12/15
6
+     * Time: 10:38
7
+     */
8 8
 
9 9
 namespace Mouf\Utils\DataSource\Mappers;
10 10
 
Please login to merge, or discard this patch.
src/Mappers/ArrayMapper.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: dam
5
- * Date: 03/12/15
6
- * Time: 10:38
7
- */
3
+     * Created by PhpStorm.
4
+     * User: dam
5
+     * Date: 03/12/15
6
+     * Time: 10:38
7
+     */
8 8
 
9 9
 namespace Mouf\Utils\DataSource\Mappers;
10 10
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         }
60 60
 
61 61
         foreach ($this->dataSource->getData() as $row) {
62
-            $this->data[] = array_map(function (PickerInterface $picker) use ($row) {
62
+            $this->data[] = array_map(function(PickerInterface $picker) use ($row) {
63 63
                 return $picker->pick(new Row($row));
64 64
             }, $this->matchers);
65 65
         }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function setParameters(array $params)
74 74
     {
75
-        if(empty($this->params)) {
75
+        if (empty($this->params)) {
76 76
             $this->params = $params;
77 77
         }
78 78
         $this->dataSource->setParameters($this->params);
Please login to merge, or discard this patch.