protected function selectionHandler()
    {
        $userCount = count($this->choices);
        if ($userCount > static::MAX_USER_CHOICES) {
            $this->autocomplete();
        } elseif ($userCount > 1) {
            $this->selector();
        } elseif (1 === $userCount) {
            $this->editor($this->choices[0]);
        }
    }
protected function selectionHandler()
    {
        $userCount = count($this->choices);
        if ($userCount > static::MAX_USER_CHOICES) {
            $this->autocomplete();
        } elseif ($userCount > 1) {
            $this->selector();
        } elseif (1 === $userCount) {
            $this->editor($this->choices[0]);
        }
    }
protected function selectionHandler ( ) { $ userCount = count ( $ this -> choices ) ; if ( $ userCount > static :: MAX_USER_CHOICES ) { $ this -> autocomplete ( ) ; } elseif ( $ userCount > 1 ) { $ this -> selector ( ) ; } elseif ( 1 === $ userCount ) { $ this -> editor ( $ this -> choices [ 0 ] ) ; } }
Handle user selection depending on options and user count in db
Handle user selection depending on options and user count in db