Skip to content

Commit 297b4d3

Browse files
committed
Composer: Add easy coding standard & fix code PSR-12
1 parent bac04b2 commit 297b4d3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131
}
3232
},
3333
"require-dev": {
34-
"phpstan/phpstan": "^0.12.50"
34+
"phpstan/phpstan": "^0.12.50",
35+
"symplify/easy-coding-standard": "^8.3"
3536
},
3637
"scripts": {
37-
"phpstan": "phpstan analyze src --level 8"
38+
"phpstan": "phpstan analyze src --level 8",
39+
"ecs": "ecs check src --set psr12",
40+
"ecs-fix": "ecs check src --set psr12 --fix"
3841
}
3942
}

src/Enabler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,4 @@ private function generateTokenName(): string
302302
{
303303
return Random::generate(self::TOKEN_LENGTH);
304304
}
305-
}
305+
}

0 commit comments

Comments
 (0)