TASK: According to PR, use else instead of default
This commit is contained in:
parent
05ce3d0aef
commit
fb746bf39d
1 changed files with 3 additions and 1 deletions
|
@ -84,10 +84,12 @@ trait ClassnameCheckerTrait
|
||||||
{
|
{
|
||||||
$tokens = $phpcsFile->getTokens();
|
$tokens = $phpcsFile->getTokens();
|
||||||
|
|
||||||
$classnamePosition = $phpcsFile->findNext(T_STRING, $stackPtr);
|
|
||||||
if ($this->shouldLookBefore()) {
|
if ($this->shouldLookBefore()) {
|
||||||
$classnamePosition = $phpcsFile->findPrevious(T_STRING, $stackPtr);
|
$classnamePosition = $phpcsFile->findPrevious(T_STRING, $stackPtr);
|
||||||
|
} else {
|
||||||
|
$classnamePosition = $phpcsFile->findNext(T_STRING, $stackPtr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($classnamePosition === false) {
|
if ($classnamePosition === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue