src/Services/InputCalibrator.php
public function isSelected($config, $checkType)
    {
        $selected = false;

        if (!is_object($config['objectValue'])) {
            $selected = (isset($config['inputs'][$config['name']])
                || isset($config['config']['selected'])
                || $config['objectValue'] === 'on'
                || ($config['objectValue'] == 1 && $checkType == 'checked')
                || is_array(json_decode($config['objectValue']))) ? $checkType : '';
        }

        return $selected;
    }
public function isSelected($config, $checkType)
    {
        $selected = false;

        if (!is_object($config['objectValue'])) {
            $selected = (isset($config['inputs'][$config['name']])
                || isset($config['config']['selected'])
                || $config['objectValue'] === 'on'
                || ($config['objectValue'] == 1 && $checkType == 'checked')
                || is_array(json_decode($config['objectValue']))) ? $checkType : '';
        }

        return $selected;
    }
public function isSelected ( $ config , $ checkType ) { $ selected = false ; if ( ! is_object ( $ config [ 'objectValue' ] ) ) { $ selected = ( isset ( $ config [ 'inputs' ] [ $ config [ 'name' ] ] ) || isset ( $ config [ 'config' ] [ 'selected' ] ) || $ config [ 'objectValue' ] === 'on' || ( $ config [ 'objectValue' ] == 1 && $ checkType == 'checked' ) || is_array ( json_decode ( $ config [ 'objectValue' ] ) ) ) ? $ checkType : '' ; } return $ selected ; }
Has been selected.

@param array  $config
@param string $checkType Type of checkmark

@return bool
Has been selected .