aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2015-05-14 15:56:53 +0200
committerNicofuma <github@nicofuma.fr>2015-05-14 16:02:05 +0200
commit3bc2b54128922ae8e42e9acb09d120af16b3fd2f (patch)
treedc0a9eca58b74077bf05ae594136076ed73efa75 /build
parent4527789e5054db42d7117caebebe45a591246ec5 (diff)
downloadforums-3bc2b54128922ae8e42e9acb09d120af16b3fd2f.tar
forums-3bc2b54128922ae8e42e9acb09d120af16b3fd2f.tar.gz
forums-3bc2b54128922ae8e42e9acb09d120af16b3fd2f.tar.bz2
forums-3bc2b54128922ae8e42e9acb09d120af16b3fd2f.tar.xz
forums-3bc2b54128922ae8e42e9acb09d120af16b3fd2f.zip
[ticket/13830] Fix unsused used statements and catch blocks
PHPBB3-13830
Diffstat (limited to 'build')
-rw-r--r--build/code_sniffer/phpbb/Sniffs/Namespaces/UnusedUseSniff.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/code_sniffer/phpbb/Sniffs/Namespaces/UnusedUseSniff.php b/build/code_sniffer/phpbb/Sniffs/Namespaces/UnusedUseSniff.php
index 9f68ee1341..3618871b7a 100644
--- a/build/code_sniffer/phpbb/Sniffs/Namespaces/UnusedUseSniff.php
+++ b/build/code_sniffer/phpbb/Sniffs/Namespaces/UnusedUseSniff.php
@@ -202,7 +202,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
$old_catch = $catch;
$caught_class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), $catch + 1);
- $caught_class_name_end = $phpcsFile->findNext($find, $caught_class_name_start, null, true);
+ $caught_class_name_end = $phpcsFile->findNext($find, $caught_class_name_start + 1, null, true);
$caught_class_name = trim($phpcsFile->getTokensAsString($caught_class_name_start, ($caught_class_name_end - $caught_class_name_start)));