mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12726] Fix coding style
PHPBB3-12726
This commit is contained in:
parent
147ae8374c
commit
7958a97fdd
1 changed files with 4 additions and 2 deletions
|
@ -192,12 +192,14 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
|
||||||
|
|
||||||
// Ignore USE keywords inside closures.
|
// Ignore USE keywords inside closures.
|
||||||
$next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
|
$next = $phpcsFile->findNext(T_WHITESPACE, ($stackPtr + 1), null, true);
|
||||||
if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS) {
|
if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS)
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore USE keywords for traits.
|
// Ignore USE keywords for traits.
|
||||||
if ($phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_TRAIT)) === true) {
|
if ($phpcsFile->hasCondition($stackPtr, array(T_CLASS, T_TRAIT)) === true)
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue