original_string: protected function _filterFile(SplFileInfo $fileInfo)
      {
          if (!$fileInfo->isFile()) {
              return false;
          }
  
          if (($expr = $this->_getFilenameRegex()) && !preg_match($expr, $fileInfo->getPathname())) {
              return false;
          }
  
          if (($callback = $this->_getCallbackFilter()) && !call_user_func_array($callback, array($fileInfo))) {
              return false;
          }
  
          return true;
      }
code: protected function _filterFile(SplFileInfo $fileInfo)
      {
          if (!$fileInfo->isFile()) {
              return false;
          }
  
          if (($expr = $this->_getFilenameRegex()) && !preg_match($expr, $fileInfo->getPathname())) {
              return false;
          }
  
          if (($callback = $this->_getCallbackFilter()) && !call_user_func_array($callback, array($fileInfo))) {
              return false;
          }
  
          return true;
      }
code_tokens: protected function _filterFile ( SplFileInfo $ fileInfo ) { if ( ! $ fileInfo -> isFile ( ) ) { return false ; } if ( ( $ expr = $ this -> _getFilenameRegex ( ) ) && ! preg_match ( $ expr , $ fileInfo -> getPathname ( ) ) ) { return false ; } if ( ( $ callback = $ this -> _getCallbackFilter ( ) ) && ! call_user_func_array ( $ callback , array ( $ fileInfo ) ) ) { return false ; } return true ; }
docstring: Determines whether or not a file is allowed to be "found".
  
  @since [*next-version*]
  
  @param SplFileInfo $fileInfo The object that represents information about a file.
  
  @return bool True if the file is allowed; false otherwise.
docstring_tokens: Determines whether or not a file is allowed to be found .