-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Frantisek Vesely
committed
Sep 9, 2024
1 parent
aab1380
commit 34d96de
Showing
2 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<ruleset | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./../vendor/squizlabs/php_codesniffer/phpcs.xsd"> | ||
<!-- Configure ruleset --> | ||
<config name="php_version" value="80200"/> | ||
|
||
<!-- Import base --> | ||
<rule ref="./base.xml"/> | ||
|
||
<!-- Version-specific rules --> | ||
<!-- - since 7.3 --> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/> | ||
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"> | ||
<properties> | ||
<property name="onlySingleLine" value="true"/> | ||
</properties> | ||
</rule> | ||
<!-- - since 7.4 --> | ||
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction"/> | ||
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"> | ||
<properties> | ||
<property name="allowMultiLine" value="true"/> | ||
<property name="spacesCountAfterKeyword" value="1"/> | ||
<property name="spacesCountBeforeArrow" value="1"/> | ||
<property name="spacesCountAfterArrow" value="1"/> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator"/> | ||
<!-- - since 8.0 --> | ||
<rule ref="SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining"/> | ||
<rule ref="SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine"/> | ||
<rule ref="SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment"/> | ||
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion"/> | ||
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator"/> | ||
<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch"/> | ||
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration"> | ||
<properties> | ||
<property name="onlySingleLine" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"> | ||
<properties> | ||
<property name="withSpaces" value="no"/> | ||
<property name="shortNullable" value="no"/> | ||
<property name="nullPosition" value="last"/> | ||
</properties> | ||
</rule> | ||
<!-- - since 8.1 --> | ||
<!-- - since 8.2 --> | ||
<!-- - since 8.3 --> | ||
|
||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<ruleset | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="./../vendor/squizlabs/php_codesniffer/phpcs.xsd"> | ||
<!-- Configure ruleset --> | ||
<config name="php_version" value="80200"/> | ||
|
||
<!-- Import base --> | ||
<rule ref="./base.xml"/> | ||
|
||
<!-- Version-specific rules --> | ||
<!-- - since 7.3 --> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/> | ||
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"> | ||
<properties> | ||
<property name="onlySingleLine" value="true"/> | ||
</properties> | ||
</rule> | ||
<!-- - since 7.4 --> | ||
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction"/> | ||
<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"> | ||
<properties> | ||
<property name="allowMultiLine" value="true"/> | ||
<property name="spacesCountAfterKeyword" value="1"/> | ||
<property name="spacesCountBeforeArrow" value="1"/> | ||
<property name="spacesCountAfterArrow" value="1"/> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator"/> | ||
<!-- - since 8.0 --> | ||
<rule ref="SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing"/> | ||
<rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining"/> | ||
<rule ref="SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine"/> | ||
<rule ref="SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment"/> | ||
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion"/> | ||
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator"/> | ||
<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch"/> | ||
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration"> | ||
<properties> | ||
<property name="onlySingleLine" value="true"/> | ||
</properties> | ||
</rule> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/> | ||
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/> | ||
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"> | ||
<properties> | ||
<property name="withSpaces" value="no"/> | ||
<property name="shortNullable" value="no"/> | ||
<property name="nullPosition" value="last"/> | ||
</properties> | ||
</rule> | ||
<!-- - since 8.1 --> | ||
<!-- - since 8.2 --> | ||
<!-- - since 8.3 --> | ||
<!-- - since 8.4 --> | ||
|
||
</ruleset> |