src/CheckCommand.php
public function filterDirs( SplFileInfo $current ) {
		if ( $current->isDir() ) {
			if ( in_array( $current->getFilename(), $this->defaultIgnoredDirs ) ) {
				// Default ignored directories can be anywhere in the directory structure
				return false;
			} elseif ( in_array( $current->getRealPath(), $this->ignoredDirs ) ) {
				// Ignored dirs are relative to root, and stored as absolute paths
				return false;
			}
		}

		return true;
	}
public function filterDirs( SplFileInfo $current ) {
		if ( $current->isDir() ) {
			if ( in_array( $current->getFilename(), $this->defaultIgnoredDirs ) ) {
				// Default ignored directories can be anywhere in the directory structure
				return false;
			} elseif ( in_array( $current->getRealPath(), $this->ignoredDirs ) ) {
				// Ignored dirs are relative to root, and stored as absolute paths
				return false;
			}
		}

		return true;
	}
public function filterDirs ( SplFileInfo $ current ) { if ( $ current -> isDir ( ) ) { if ( in_array ( $ current -> getFilename ( ) , $ this -> defaultIgnoredDirs ) ) { // Default ignored directories can be anywhere in the directory structure return false ; } elseif ( in_array ( $ current -> getRealPath ( ) , $ this -> ignoredDirs ) ) { // Ignored dirs are relative to root, and stored as absolute paths return false ; } } return true ; }
Filter out ignored directories, split into a separate
function for easier readability. Used by
RecursiveCallbackFilterIterator

@param SplFileInfo $current File/directory to check
@return bool
Filter out ignored directories split into a separate function for easier readability . Used by RecursiveCallbackFilterIterator