Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Dec 16, 2019
2 parents 15aedfc + 8ccf67b commit 0786865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function process(File $phpcsFile, $stackPtr)
// Make sure this use statement is not on the same line as the previous one.
$prev = $phpcsFile->findPrevious(Tokens::$emptyTokens, ($useToken - 1), null, true);
if ($prev !== false && $tokens[$prev]['line'] === $tokens[$useToken]['line']) {
$error = 'Each imported trait must be on it\'s own line';
$error = 'Each imported trait must be on its own line';
$prevNonWs = $phpcsFile->findPrevious(T_WHITESPACE, ($useToken - 1), null, true);
if ($prevNonWs !== $prev) {
$phpcsFile->addError($error, $useToken, 'SpacingBeforeImport');
Expand Down

0 comments on commit 0786865

Please sign in to comment.