Skip to content

Commit

Permalink
Set zero spaces after fn keyword to follow PER-CS2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Apr 1, 2024
1 parent bfafc49 commit 44f398f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IxDFCodingStandard/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@
<rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/>
<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch"/>
<rule ref="SlevomatCodingStandard.Files.FileLength"/>
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration">
<properties>
<property name="spacesCountAfterKeyword" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.DisallowEmptyFunction"/>
<rule ref="SlevomatCodingStandard.Functions.DisallowNamedArguments">
<exclude-pattern>tests/*\.php</exclude-pattern>
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}
},
"scripts": {
"cs": "@cs:fix",
"cs:check": "phpcs -p -s --colors --report-full --report-summary --cache=.cache/phpcs",
"cs:fix": "phpcbf -p --colors --cache=.cache/phpcs",
"test": "phpunit",
Expand Down

0 comments on commit 44f398f

Please sign in to comment.