src/Charcoal/Property/SelectablePropertyTrait.php 1 location
|
@@ 166-171 (lines=6) @@
|
163 |
|
protected function parseChoices(array $choices) |
164 |
|
{ |
165 |
|
$parsed = []; |
166 |
|
foreach ($choices as $choiceIdent => $choice) { |
167 |
|
$choice = $this->parseChoice($choice, (string)$choiceIdent); |
168 |
|
$choiceIdent = $choice['value']; |
169 |
|
|
170 |
|
$parsed[$choiceIdent] = $choice; |
171 |
|
} |
172 |
|
|
173 |
|
return $parsed; |
174 |
|
} |
src/Charcoal/Property/ObjectProperty.php 1 location
|
@@ 663-669 (lines=7) @@
|
660 |
|
} |
661 |
|
|
662 |
|
$parsed = []; |
663 |
|
foreach ($objs as $choice) { |
664 |
|
$choice = $this->parseChoice($choice); |
665 |
|
if ($choice !== null) { |
666 |
|
$choiceIdent = $choice['value']; |
667 |
|
$parsed[$choiceIdent] = $choice; |
668 |
|
} |
669 |
|
} |
670 |
|
|
671 |
|
return $parsed; |
672 |
|
} |