| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function render($lastCrawl) |
||
| 36 | { |
||
| 37 | foreach($lastCrawl as $lastCrawlElement) { |
||
| 38 | foreach($this->transformedLastCrawl as $key => $element) { |
||
| 39 | if($lastCrawlElement['inventory_group'] === $key) { |
||
| 40 | $this->transformedLastCrawl[$key] = $lastCrawlElement['count']; |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 | return $this->transformedLastCrawl; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |