Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function execute() |
||
17 | { |
||
18 | if ($maxRadius = $this->input->getArgument('max_radius')) { |
||
19 | $this->config->setMaxRadius($maxRadius); |
||
20 | } |
||
21 | |||
22 | return array_map(function($event) { |
||
23 | $dom = $this->dom->load($event->innerHtml); |
||
24 | |||
25 | return new Bag(clone $dom, array_map(function($elem) use ($dom) { |
||
26 | return (new $elem)->find($dom); |
||
27 | }, $this->config->getCatalogProviders())); |
||
28 | }, $this->getRows()); |
||
29 | } |
||
30 | |||
50 | } |