protected function rankWeights(Model $model)
    {
        $weights = $this->option($model, 'rank.weights');

        if (! is_array($weights) || count($weights) !== 4) {
            return '';
        }

        return '{'.implode(',', $weights).'}';
    }
protected function rankWeights(Model $model)
    {
        $weights = $this->option($model, 'rank.weights');

        if (! is_array($weights) || count($weights) !== 4) {
            return '';
        }

        return '{'.implode(',', $weights).'}';
    }
protected function rankWeights ( Model $ model ) { $ weights = $ this -> option ( $ model , 'rank.weights' ) ; if ( ! is_array ( $ weights ) || count ( $ weights ) !== 4 ) { return '' ; } return '{' . implode ( ',' , $ weights ) . '}' ; }
Get rank weights.

@param \Illuminate\Database\Eloquent\Model $model
@return string
Get rank weights .