Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Last active April 29, 2019 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markhowellsmead/655d16dcd96a088beb838a67fb47d60e to your computer and use it in GitHub Desktop.
Save markhowellsmead/655d16dcd96a088beb838a67fb47d60e to your computer and use it in GitHub Desktop.
Dev ruleset for PHP development on new projects (2019)
<?xml version="1.0"?>
<ruleset name="SayHelloStandard">
<description>PSR2 with tabs instead of spaces, as used for projects by sayhello.ch.</description>
<arg name="tab-width" value="4"/>
<rule ref="PSR2">
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
</rule>
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
</properties>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment