@@ -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 | }); |