File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed
Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ protected function applyFix(File $phpCsFile,
167167 $ leftIndexStart ,
168168 $ leftIndexEnd ,
169169 $ rightIndexStart ,
170- $ rightIndexEnd ) {
170+ $ rightIndexEnd ,
171+ ) {
171172 $ tokens = $ phpCsFile ->getTokens ();
172173
173174 $ token = $ tokens [$ index ];
Original file line number Diff line number Diff line change 4242 <rule ref =" SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation" />
4343
4444 <rule ref =" SlevomatCodingStandard.Functions.ArrowFunctionDeclaration" />
45+ <rule ref =" SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration" />
46+ <rule ref =" SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse" />
4547 <rule ref =" SlevomatCodingStandard.Functions.RequireTrailingCommaInCall" />
46- <rule ref =" SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration" />
47- <rule ref =" SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse" />
48+ <rule ref =" SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration" >
49+ <properties >
50+ <property name =" onlySingleLine" type =" boolean" value =" true" />
51+ </properties >
52+ </rule >
53+ <rule ref =" SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse" >
54+ <properties >
55+ <property name =" onlySingleLine" type =" boolean" value =" true" />
56+ </properties >
57+ </rule >
4858 <rule ref =" SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall" >
4959 <properties >
5060 <property name =" onlySingleLine" type =" boolean" value =" true" />
Original file line number Diff line number Diff line change 11# PSR-2-R Sniffer
22[ ![ CI] ( https://github.com/php-fig-rectified/psr2r-sniffer/actions/workflows/ci.yml/badge.svg?branch=master )] ( https://github.com/php-fig-rectified/psr2r-sniffer/actions/workflows/ci.yml )
33[ ![ Latest Stable Version] ( https://poser.pugx.org/fig-r/psr2r-sniffer/v/stable.svg )] ( https://packagist.org/packages/fig-r/psr2r-sniffer )
4- [ ![ Minimum PHP Version] ( http://img.shields.io/badge/php-%3E%3D%207.3 -8892BF.svg )] ( https://php.net/ )
4+ [ ![ Minimum PHP Version] ( http://img.shields.io/badge/php-%3E%3D%208.1 -8892BF.svg )] ( https://php.net/ )
55[ ![ License] ( https://poser.pugx.org/fig-r/psr2r-sniffer/license.svg )] ( https://packagist.org/packages/fig-r/psr2r-sniffer )
66[ ![ Total Downloads] ( https://poser.pugx.org/fig-r/psr2r-sniffer/d/total.svg )] ( https://packagist.org/packages/fig-r/psr2r-sniffer )
77[ ![ Coding Standards] ( https://img.shields.io/badge/cs-PSR--2--R-yellow.svg )] ( https://github.com/php-fig-rectified/fig-rectified-standards )
@@ -10,11 +10,13 @@ For details on PSR-2-R see [fig-rectified-standards](https://github.com/php-fig-
1010
1111Documentation @ [ /docs/] ( docs ) .
1212
13+ This branch is for use with ** PHP 8.1+** repos.
14+
1315## Included sniffs
1416The following sniffers are bundles together as ` PSR2R ` already, but you can
1517also use them standalone/separately in any way you like.
1618
17- ** Currently PSR2R ships with over 180 sniffs.**
19+ ** Currently PSR2R ships with over 190 sniffs.**
1820
1921* [ List of included sniffs] ( docs/sniffs.md )
2022
Original file line number Diff line number Diff line change 11# PSR2R Code Sniffer
22
3- The PSR2R standard contains 188 sniffs
3+ The PSR2R standard contains 191 sniffs
44
55Generic (22 sniffs)
66-------------------
@@ -105,7 +105,7 @@ PSR2R (44 sniffs)
105105- PSR2R.WhiteSpace.TabIndent
106106- PSR2R.WhiteSpace.UnaryOperatorSpacing
107107
108- SlevomatCodingStandard (42 sniffs)
108+ SlevomatCodingStandard (45 sniffs)
109109----------------------------------
110110- SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation
111111- SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement
@@ -130,6 +130,9 @@ SlevomatCodingStandard (42 sniffs)
130130- SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall
131131- SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse
132132- SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration
133+ - SlevomatCodingStandard.Functions.RequireTrailingCommaInCall
134+ - SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse
135+ - SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration
133136- SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
134137- SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
135138- SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile
You can’t perform that action at this time.
0 commit comments