squizlabs/PHP_CodeSniffer — pull request #247 by bkdotcom (2014-09-04 16:42:58+00:00)
Title: Fix bug 20386

Squiz.Commenting.ClassComment.SpacingBefore was being thrown if the class comment is the first comment in the file
and the condition 'There must be exactly one blank line before the class comment' was met

In my case, I've made file-comments optional by assigning Squiz.Commenting.FileComment.Missing a low severity

FileCommentSniff looks for zero (0) blank lines between T_OPEN_TAG and the file comment

For consistency, perhaps ClassCommentSniff should also look for zero blank lines if the class comment is first ?