Fixed an infinite loop when the basedir was actually a file path
Fixed an infinite loop when the basedir was actually a file path

arnested/PHP_CodeSniffer,jrfnl/PHP_CodeSniffer,fabacino/PHP_CodeSniffer,arnested/PHP_CodeSniffer,jrfnl/PHP_CodeSniffer,squizlabs/PHP_CodeSniffer,stronk7/PHP_CodeSniffer,VANINUitgeverij/PHP_CodeSniffer,stronk7/PHP_CodeSniffer,VANINUitgeverij/PHP_CodeSniffer,squizlabs/PHP_CodeSniffer,fabacino/PHP_CodeSniffer,VANINUitgeverij/PHP_CodeSniffer,arnested/PHP_CodeSniffer,stronk7/PHP_CodeSniffer,fabacino/PHP_CodeSniffer,jrfnl/PHP_CodeSniffer,squizlabs/PHP_CodeSniffer