PHP files with spaces in their name causes the lint script to break and stop scanning files. This MR re-works the foreach loop to better handle spaces and other unusual characters in filenames