Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - $blankLines = $lastLine - $lastCodeLine;
- - if ($blankLines === 0) {
- - $error = 'Expected 1 blank line at end of file; 0 found';
- - $data = array($blankLines);
- - $phpcsFile->addError($error, $stackPtr, 'NotFound', $data);
- - } else if ($blankLines > 1) {
- - $error = 'Expected 1 blank line at end of file; "%s" found';
- - $data = array($blankLines);
- + $blankLines = ($lastLine - $lastCodeLine);
- + if ($blankLines > 0) {
- + $error = 'Expected 1 blank line at end of file; %s found';
- + $data = array($blankLines + 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement