src/Potter/Theme/Options.php
protected function filterChoices(array $choices)
    {
        $return = array();

        foreach ($choices as $key => $choice):
            if (!isset($choice['value']) or empty($choice['value'])):
                $choice['value'] = $key;
            endif;

            if (!isset($choice['label']) or empty($choice['label'])):
                $choice['label'] = $choice['value'];
            endif;
            $return[] = $choice;
        endforeach;

        return $return;
    }
protected function filterChoices(array $choices)
    {
        $return = array();

        foreach ($choices as $key => $choice):
            if (!isset($choice['value']) or empty($choice['value'])):
                $choice['value'] = $key;
            endif;

            if (!isset($choice['label']) or empty($choice['label'])):
                $choice['label'] = $choice['value'];
            endif;
            $return[] = $choice;
        endforeach;

        return $return;
    }
@param array $choices

@return array