File tree Expand file tree Collapse file tree 7 files changed +19
-13
lines changed Expand file tree Collapse file tree 7 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 1111*
1212*/
1313
14+ namespace phpbb \Sniffs \Commenting ;
15+
1416use PHP_CodeSniffer \Files \File ;
1517use PHP_CodeSniffer \Sniffs \Sniff ;
1618
2123* @package code_sniffer
2224* @author Manuel Pichler <mapi@phpundercontrol.org>
2325*/
24- class phpbb_Sniffs_Commenting_FileCommentSniff implements Sniff
26+ class FileCommentSniff implements Sniff
2527{
2628 /**
2729 * Returns an array of tokens this test wants to listen for.
Original file line number Diff line number Diff line change 1111*
1212*/
1313
14+ namespace phpbb \Sniffs \ControlStructures ;
15+
1416use PHP_CodeSniffer \Files \File ;
1517use PHP_CodeSniffer \Sniffs \Sniff ;
1618
1719/**
1820 * Checks that the opening brace of a control structures is on the line after.
1921 * From Generic_Sniffs_Functions_OpeningFunctionBraceBsdAllmanSniff
2022 */
21- class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements Sniff
23+ class OpeningBraceBsdAllmanSniff implements Sniff
2224{
2325 /**
2426 * Registers the tokens that this sniff wants to listen for.
Original file line number Diff line number Diff line change 1010 * the docs/CREDITS.txt file.
1111 *
1212 */
13+ namespace phpbb \Sniffs \ControlStructures ;
1314
1415use PHP_CodeSniffer \Files \File ;
1516use PHP_CodeSniffer \Sniffs \Sniff ;
1819 * Checks that there is exactly one space between the keyword and the opening
1920 * parenthesis of a control structures.
2021 */
21- class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements Sniff
22+ class OpeningParenthesisSniff implements Sniff
2223{
2324 /**
2425 * Registers the tokens that this sniff wants to listen for.
Original file line number Diff line number Diff line change 1111 *
1212 */
1313
14+ namespace phpbb \Sniffs \ControlStructures ;
15+
1416use PHP_CodeSniffer \Files \File ;
1517use PHP_CodeSniffer \Sniffs \Sniff ;
1618
1719/**
1820 * Checks that the visibility qualifiers are placed after the static keyword
1921 * according to the coding guidelines
2022 */
21- class phpbb_Sniffs_ControlStructures_StaticKeywordSniff implements Sniff
23+ class StaticKeywordSniff implements Sniff
2224{
2325 /**
2426 * Registers the tokens that this sniff wants to listen for.
Original file line number Diff line number Diff line change 1111*
1212*/
1313
14+ namespace phpbb \Sniffs \Namespaces ;
15+
1416use PHP_CodeSniffer \Files \File ;
1517use PHP_CodeSniffer \Sniffs \Sniff ;
1618
1719/**
1820* Checks that each use statement is used.
1921*/
20- class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
22+ class UnusedUseSniff implements Sniff
2123{
2224 const FIND = [
2325 T_NS_SEPARATOR ,
Original file line number Diff line number Diff line change 1717 <!-- There MUST not be more than one statement per line. -->
1818 <rule ref =" Generic.Formatting.DisallowMultipleStatements" />
1919
20- <!-- Call-time pass-by-reference MUST not be used. -->
21- <rule ref =" Generic.Functions.CallTimePassByReference.NotAllowed" />
22-
2320 <!-- Filenames MUST be lowercase. -->
2421 <rule ref =" Generic.Files.LowercasedFilename" />
2522
You can’t perform that action at this time.
0 commit comments