Last active
October 26, 2017 11:53
-
-
Save thanhluu/4a6afff46177a5c579b2 to your computer and use it in GitHub Desktop.
Ignore folder for theme check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Search "$dir_iterator" then insert those codes below this line: | |
// $dir_iterator = new RecursiveDirectoryIterator( $dir ); | |
$filter = array( 'framework', 'tools', 'vendor', 'lib', 'installer', 'updater' ); | |
$dir_iterator = new \RecursiveCallbackFilterIterator( | |
$dir_iterator, | |
function( $item ) use ( $filter ) { | |
return ! in_array( $item->getBaseName(), $filter ); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment