src/Code/Code.php
protected function getCodeModes()
    {
        // List all modes
        $modes = $this->getModes();
        $codemodes = [];

        // Build select
        foreach ($modes as $mode) {
            $codemodes[$mode['mode'][0]] = $mode['title'];
        }

        return $codemodes;
    }
protected function getCodeModes()
    {
        // List all modes
        $modes = $this->getModes();
        $codemodes = [];

        // Build select
        foreach ($modes as $mode) {
            $codemodes[$mode['mode'][0]] = $mode['title'];
        }

        return $codemodes;
    }
Return all available modes.

@return array $codes