protected function convert($supervisor, $options)
    {
        $options = collect($options)->mapWithKeys(function ($value, $key) {
            $key = $key === 'tries' ? 'max_tries' : $key;
            $key = $key === 'processes' ? 'max_processes' : $key;
            $value = $key === 'queue' && is_array($value) ? implode(',', $value) : $value;

            return [Str::camel($key) => $value];
        })->all();

        return SupervisorOptions::fromArray(
            Arr::add($options, 'name', $this->master.":{$supervisor}")
        );
    }
protected function convert($supervisor, $options)
    {
        $options = collect($options)->mapWithKeys(function ($value, $key) {
            $key = $key === 'tries' ? 'max_tries' : $key;
            $key = $key === 'processes' ? 'max_processes' : $key;
            $value = $key === 'queue' && is_array($value) ? implode(',', $value) : $value;

            return [Str::camel($key) => $value];
        })->all();

        return SupervisorOptions::fromArray(
            Arr::add($options, 'name', $this->master.":{$supervisor}")
        );
    }
protected function convert ( $ supervisor , $ options ) { $ options = collect ( $ options ) -> mapWithKeys ( function ( $ value , $ key ) { $ key = $ key === 'tries' ? 'max_tries' : $ key ; $ key = $ key === 'processes' ? 'max_processes' : $ key ; $ value = $ key === 'queue' && is_array ( $ value ) ? implode ( ',' , $ value ) : $ value ; return [ Str :: camel ( $ key ) => $ value ] ; } ) -> all ( ) ; return SupervisorOptions :: fromArray ( Arr :: add ( $ options , 'name' , $ this -> master . ":{$supervisor}" ) ) ; }
Convert the given array of options into a SupervisorOptions instance.

@param  string  $supervisor
@param  array  $options
@return \Laravel\Horizon\SupervisorOptions
Convert the given array of options into a SupervisorOptions instance .