diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-12-30 14:41:24 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 21:57:10 +0200 |
commit | 922378179759cd5ff0035cdcb88be7e167239038 (patch) | |
tree | 292268ad1f2eb855e8dfe27a9b0dbc9f6a7ade29 /build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php | |
parent | e76c673e2e6a379ae7c4beccabfaaf8a5eb18371 (diff) | |
download | forums-922378179759cd5ff0035cdcb88be7e167239038.tar forums-922378179759cd5ff0035cdcb88be7e167239038.tar.gz forums-922378179759cd5ff0035cdcb88be7e167239038.tar.bz2 forums-922378179759cd5ff0035cdcb88be7e167239038.tar.xz forums-922378179759cd5ff0035cdcb88be7e167239038.zip |
[ticket/14948] Update codesniffer files to be compatible with phpcs 3.x
PHPBB3-14948
Diffstat (limited to 'build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php')
-rw-r--r-- | build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php b/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php index 349bccbb02..d4ecd6cb95 100644 --- a/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php +++ b/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php @@ -11,11 +11,14 @@ * */ +use PHP_CodeSniffer\Files\File; +use PHP_CodeSniffer\Sniffs\Sniff; + /** * Checks that there is exactly one space between the keyword and the opening * parenthesis of a control structures. */ -class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements PHP_CodeSniffer_Sniff +class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements Sniff { /** * Registers the tokens that this sniff wants to listen for. @@ -36,13 +39,13 @@ class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements PHP_Code /** * Processes this test, when one of its tokens is encountered. * - * @param PHP_CodeSniffer_File $phpcsFile The file being scanned. + * @param File $phpcsFile The file being scanned. * @param int $stackPtr The position of the current token in the * stack passed in $tokens. * * @return void */ - public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) + public function process(File $phpcsFile, $stackPtr) { $tokens = $phpcsFile->getTokens(); |