| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 17 | public function parse($inputConfiguration): Collection |
|
| 25 | { |
||
| 26 | 17 | $result = []; |
|
| 27 | 17 | $adaptedInputConfiguration = $this->parseAdapterConfiguration($inputConfiguration); |
|
| 28 | |||
| 29 | 17 | foreach ($adaptedInputConfiguration as $adaptedPageConfiguration) { |
|
| 30 | 17 | $page = $this->parsePage($adaptedPageConfiguration); |
|
| 31 | |||
| 32 | 17 | $result[$page->id()] = $page; |
|
| 33 | } |
||
| 34 | |||
| 35 | 17 | return collect($result); |
|
| 36 | } |
||
| 37 | |||
| 62 |