original_string: public final function checkConfiguration($deep = false) {
      if (!file_exists($this->filename) || !is_readable($this->filename)) {
        throw new ConfigurationNotFoundException("File $this->filename does not exist or is not readable");
      }
  
      $fileExtension = pathinfo($this->filename, PATHINFO_EXTENSION);
      if (in_array($fileExtension, static::$supportedFileTypes)) {
        return true;
      }
  
      if (!$deep) {
        return false;
      }
  
      try {
        $this->parseAndCacheConfiguration();
        return true;
      } catch (ParseException $e) {
        return false;
      }
    }
code: public final function checkConfiguration($deep = false) {
      if (!file_exists($this->filename) || !is_readable($this->filename)) {
        throw new ConfigurationNotFoundException("File $this->filename does not exist or is not readable");
      }
  
      $fileExtension = pathinfo($this->filename, PATHINFO_EXTENSION);
      if (in_array($fileExtension, static::$supportedFileTypes)) {
        return true;
      }
  
      if (!$deep) {
        return false;
      }
  
      try {
        $this->parseAndCacheConfiguration();
        return true;
      } catch (ParseException $e) {
        return false;
      }
    }
code_tokens: public final function checkConfiguration ( $ deep = false ) { if ( ! file_exists ( $ this -> filename ) || ! is_readable ( $ this -> filename ) ) { throw new ConfigurationNotFoundException ( "File $this->filename does not exist or is not readable" ) ; } $ fileExtension = pathinfo ( $ this -> filename , PATHINFO_EXTENSION ) ; if ( in_array ( $ fileExtension , static :: $ supportedFileTypes ) ) { return true ; } if ( ! $ deep ) { return false ; } try { $ this -> parseAndCacheConfiguration ( ) ; return true ; } catch ( ParseException $ e ) { return false ; } }
docstring: Checks, if a given file can be parsed by this configuration loader. If the file type is supported
  by this loader, this function will return true without further checking for correct syntax of the
  configuration file.
  
  If the deep parameter is set to true, this function will try to parse the file formats to test
  whether they can be parsed or not.
  
  @param $deep bool if set to true, this function will just look for the file extension
  @return bool true, if the given file can be parsed by this loader, false else
  
  @throws ConfigurationNotFoundException if the given accessor accesses no valid configuration
docstring_tokens: Checks if a given file can be parsed by this configuration loader . If the file type is supported by this loader this function will return true without further checking for correct syntax of the configuration file .