diff options
| author | Maat <maat-pub@mageia.biz> | 2020-05-09 01:15:08 +0200 | 
|---|---|---|
| committer | Maat <maat-pub@mageia.biz> | 2020-05-09 01:15:08 +0200 | 
| commit | 6985226b17e8a0ef0a720bf1d12fe0c216e13dab (patch) | |
| tree | 116d2565ac02c40abe0548863c6badf8ec3e1d1e /build/code_sniffer/phpbb/Sniffs/ControlStructures | |
| parent | 8ea437e30605e0f66b5220bf904a61d7c1d11ddd (diff) | |
| parent | 8d00784dfe2c8bcb10843ff70b4cfa998d703285 (diff) | |
| download | forums-6985226b17e8a0ef0a720bf1d12fe0c216e13dab.tar forums-6985226b17e8a0ef0a720bf1d12fe0c216e13dab.tar.gz forums-6985226b17e8a0ef0a720bf1d12fe0c216e13dab.tar.bz2 forums-6985226b17e8a0ef0a720bf1d12fe0c216e13dab.tar.xz forums-6985226b17e8a0ef0a720bf1d12fe0c216e13dab.zip | |
Diffstat (limited to 'build/code_sniffer/phpbb/Sniffs/ControlStructures')
| -rw-r--r-- | build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningBraceBsdAllmanSniff.php | 9 | ||||
| -rw-r--r-- | build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php | 9 | 
2 files changed, 12 insertions, 6 deletions
| diff --git a/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningBraceBsdAllmanSniff.php b/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningBraceBsdAllmanSniff.php index 885c38c5b4..a529fc25cb 100644 --- a/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningBraceBsdAllmanSniff.php +++ b/build/code_sniffer/phpbb/Sniffs/ControlStructures/OpeningBraceBsdAllmanSniff.php @@ -11,11 +11,14 @@  *  */ +use PHP_CodeSniffer\Files\File; +use PHP_CodeSniffer\Sniffs\Sniff; +  /**   * Checks that the opening brace of a control structures is on the line after.   * From Generic_Sniffs_Functions_OpeningFunctionBraceBsdAllmanSniff   */ -class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements PHP_CodeSniffer_Sniff +class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements Sniff  {  	/**  	 * Registers the tokens that this sniff wants to listen for. @@ -36,13 +39,13 @@ class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements PHP_C  	/**  	 * 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(); 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(); | 
