| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function resolve(SectionableInterface $sectionable, ?string $sectionsRow): void |
||
| 29 | { |
||
| 30 | if (null === $sectionsRow) { |
||
| 31 | return; |
||
| 32 | } |
||
| 33 | |||
| 34 | $sectionCodes = explode(',', $sectionsRow); |
||
| 35 | $sectionCodes = array_map(function (string $element): string { |
||
| 36 | return trim($element); |
||
| 37 | }, $sectionCodes); |
||
| 38 | |||
| 39 | $this->sectionsAssigner->assign($sectionable, $sectionCodes); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |