@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function transform($data) |
| 13 | 13 | { |
| 14 | - return collect($data)->map(function ($value) { |
|
| 14 | + return collect($data)->map(function($value) { |
|
| 15 | 15 | if (is_numeric($value)) { |
| 16 | 16 | $value += 0; |
| 17 | 17 | if (is_float($value)) { |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | */ |
| 113 | 113 | public function pipe($options = []) |
| 114 | 114 | { |
| 115 | - return function ($inputData) use ($options) { |
|
| 115 | + return function($inputData) use ($options) { |
|
| 116 | 116 | $fromArray = Arr::get($options, 'fromArray', true); |
| 117 | 117 | if ($fromArray) { |
| 118 | 118 | $this->fromArray($inputData); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | { |
| 34 | 34 | $crawler = new Crawler((string) $this->getData()); |
| 35 | 35 | |
| 36 | - return $crawler->filter($this->getConfig()['selector'])->each(function ($element) { |
|
| 36 | + return $crawler->filter($this->getConfig()['selector'])->each(function($element) { |
|
| 37 | 37 | /* @var Crawler $element */ |
| 38 | 38 | return $this->domNodeToArray($element->getNode(0)); |
| 39 | 39 | }); |
@@ -39,14 +39,14 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $crawler = new Crawler((string) $this->getData()); |
| 41 | 41 | |
| 42 | - return $crawler->filter($this->getConfig()['selector'])->each(function ($table) { |
|
| 42 | + return $crawler->filter($this->getConfig()['selector'])->each(function($table) { |
|
| 43 | 43 | $rows = []; |
| 44 | 44 | |
| 45 | 45 | try { |
| 46 | 46 | /** @var Crawler $table */ |
| 47 | - $rows = $table->filter('tr')->each(function ($row) { |
|
| 47 | + $rows = $table->filter('tr')->each(function($row) { |
|
| 48 | 48 | /* @var Crawler $row */ |
| 49 | - return $row->filter('th,td')->each(function ($column) { |
|
| 49 | + return $row->filter('th,td')->each(function($column) { |
|
| 50 | 50 | /* @var Crawler $column */ |
| 51 | 51 | return trim($column->text()); |
| 52 | 52 | }); |