squizlabs/PHP_CodeSniffer — pull request #80 by tasuk (2012-11-30 23:30:28+00:00)
Title: Simplify and speed-up search for backslash in File

Hi Greg,

This is a small improvement following up on #62. Basically, there's no need for the `/(\\\\.)+/` regex (matches backslash followed by any character, repeated 1+ times - that was to be able to capture the actual wrong line ending and inform the user).

To just check whether a string contains a backslash, strpos should be both faster and easier to understand.