Skip to content

Commit

Permalink
Merge pull request #595 from PHPCSStandards/feature/usestatements-min…
Browse files Browse the repository at this point in the history
…or-simplification

UseStatements::splitImportUseStatement(): minor simplification
  • Loading branch information
jrfnl authored May 13, 2024
2 parents 473cf6c + c9cd949 commit 94e8aba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions PHPCSUtils/Utils/UseStatements.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ public static function splitImportUseStatement(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();

if (isset($tokens[$stackPtr]) === false || $tokens[$stackPtr]['code'] !== \T_USE) {
throw new RuntimeException('$stackPtr must be of type T_USE');
}

if (self::isImportUse($phpcsFile, $stackPtr) === false) {
throw new RuntimeException('$stackPtr must be an import use statement');
}
Expand Down

0 comments on commit 94e8aba

Please sign in to comment.