Last active
August 16, 2022 04:48
-
-
Save arafatjamil01/9e6e581d180431a638e70d3621a9ab21 to your computer and use it in GitHub Desktop.
PHPCS customization personally
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
Convert long array syntax into short array ones, | |
replace the line - Generic.Arrays.DisallowShortArraySyntax to Generic.Arrays.DisallowLongArraySyntax | |
------------ | |
<rule ref="Generic.Arrays.DisallowLongArraySyntax"> | |
<type>warning</type> | |
</rule> | |
Fix \r\n issue for spacing | |
----------- | |
<rule ref="Generic.Files.LineEndings"> | |
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/> | |
</rule> | |
Instructions: Copy these files to xml, it will start working. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment