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