src/Components/Recorder.php
private function canCollect($type) {
        if (!empty($this->config) && !empty($this->config['collect']) && !empty($this->config['collect'][$type])) {
            return $this->config['collect'][$type] === true;
        }
        return false;
    }
private function canCollect($type) {
        if (!empty($this->config) && !empty($this->config['collect']) && !empty($this->config['collect'][$type])) {
            return $this->config['collect'][$type] === true;
        }
        return false;
    }
private function canCollect ( $ type ) { if ( ! empty ( $ this -> config ) && ! empty ( $ this -> config [ 'collect' ] ) && ! empty ( $ this -> config [ 'collect' ] [ $ type ] ) ) { return $ this -> config [ 'collect' ] [ $ type ] === true ; } return false ; }
Checks the config to see if you can collect certain information
@param  string $type the config value you want to check
@return boolean
Checks the config to see if you can collect certain information