Skip to content
Snippets Groups Projects
Unverified Commit fdbc043a authored by Klaus Purer's avatar Klaus Purer Committed by GitHub
Browse files

fix(ClassDeclaration): Fix indent to 2 spaces for multi-line class declaration (#3300911)

parent 2cc69aef
Branches
Tags 5.x-1.1
No related merge requests found
......@@ -25,6 +25,13 @@ use PHP_CodeSniffer\Util\Tokens;
class ClassDeclarationSniff extends PSR2ClassDeclarationSniff
{
/**
* {@inheritdoc}
*
* @var integer
*/
public $indent = 2;
/**
* Returns an array of tokens this test wants to listen for.
......
......@@ -40,3 +40,14 @@ namespace {
class ThirdClass {
// No-op.
}
/**
* Class declaration over multiple lines.
*/
class WithManyInterfaces implements
Interface1,
Interface2,
Interface3,
Interface4 {
}
......@@ -40,3 +40,14 @@ namespace {
class ThirdClass {
// No-op.
}
/**
* Class declaration over multiple lines.
*/
class WithManyInterfaces implements
Interface1,
Interface2,
Interface3,
Interface4 {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment