The current implementation via glob ignores .php files in current dir in case . is passed as file list, and also ignores nested directories.
To fix the issue, this commit introduces a more solid implementation via RecursiveDirectoryIterator with appropriate filtering.
The issue can be demonstrated when running the phpcs-changed eg.: for the liveblog plugin from within the root directory of the plugin. In such case, the following files are ignored:
The current implementation via glob ignores .php files in current dir in case
.
is passed as file list, and also ignores nested directories.To fix the issue, this commit introduces a more solid implementation via
RecursiveDirectoryIterator
with appropriate filtering.The issue can be demonstrated when running the phpcs-changed eg.: for the liveblog plugin from within the root directory of the plugin. In such case, the following files are ignored: