src/Services/InputMaker.php
public function prepareType($config)
    {
        $config['type'] = $config['inputTypes']['string'];

        if (isset($config['inputTypes'][$config['inputType']])) {
            $config['type'] = $config['inputTypes'][$config['inputType']];
        }

        return $config;
    }
public function prepareType($config)
    {
        $config['type'] = $config['inputTypes']['string'];

        if (isset($config['inputTypes'][$config['inputType']])) {
            $config['type'] = $config['inputTypes'][$config['inputType']];
        }

        return $config;
    }
public function prepareType ( $ config ) { $ config [ 'type' ] = $ config [ 'inputTypes' ] [ 'string' ] ; if ( isset ( $ config [ 'inputTypes' ] [ $ config [ 'inputType' ] ] ) ) { $ config [ 'type' ] = $ config [ 'inputTypes' ] [ $ config [ 'inputType' ] ] ; } return $ config ; }
prepare the type.

@param array $config

@return array
prepare the type .