Refactored newline sniff at the end files to conform better with upstream PHPCS and not throw false positives when stdin is used.