mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12726] Fix coding style
PHPBB3-12726
This commit is contained in:
@@ -29,7 +29,8 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
|
|||||||
*/
|
*/
|
||||||
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
|
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
|
||||||
{
|
{
|
||||||
if ($this->should_ignore_use($phpcsFile, $stackPtr) === true) {
|
if ($this->should_ignore_use($phpcsFile, $stackPtr) === true)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +109,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
|
|||||||
$ok = true;
|
$ok = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks in implements
|
// Checks in implements
|
||||||
$old_implements = $stackPtr;
|
$old_implements = $stackPtr;
|
||||||
while (($implements = $phpcsFile->findNext(T_IMPLEMENTS, ($old_implements + 1))) !== false)
|
while (($implements = $phpcsFile->findNext(T_IMPLEMENTS, ($old_implements + 1))) !== false)
|
||||||
|
Reference in New Issue
Block a user