Skip to content

Commit 3ba325c

Browse files
authored
Merge pull request #30 from hemberger/enum-support
DocBlockAlignmentSniff.php: add enum support
2 parents d6fe9e2 + 99c66c4 commit 3ba325c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

PSR2R/Sniffs/WhiteSpace/DocBlockAlignmentSniff.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ public function process(File $phpcsFile, $stackPtr) {
4545
$tokens = $phpcsFile->getTokens();
4646
$leftWall = [
4747
T_CLASS,
48+
T_ENUM,
4849
T_NAMESPACE,
4950
T_INTERFACE,
5051
T_TRAIT,
5152
T_USE,
5253
];
5354
$oneIndentation = [
55+
T_ENUM_CASE,
5456
T_FUNCTION,
5557
T_VARIABLE,
5658
T_CONST,

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"require": {
1515
"php": ">=7.3",
1616
"spryker/code-sniffer": "^0.17.1",
17-
"slevomat/coding-standard": "^7.0.1"
17+
"slevomat/coding-standard": "^7.0.1",
18+
"squizlabs/php_codesniffer": "^3.7.0"
1819
},
1920
"require-dev": {
2021
"phpstan/phpstan": "^1.0.0"

0 commit comments

Comments
 (0)