Skip to content

Instantly share code, notes, and snippets.

@shahmirj
Created November 7, 2014 11:24
Show Gist options
  • Save shahmirj/a09a949ef1916943df9e to your computer and use it in GitHub Desktop.
Save shahmirj/a09a949ef1916943df9e to your computer and use it in GitHub Desktop.
My PHP Coding Standard
<?xml version="1.0"?>
<ruleset name="MyStandard">
<rule ref="PEAR">
<exclude name="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>
<exclude name="PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"/>
<exclude name="PEAR.WhiteSpace.ScopeIndent"/>
</rule>
<rule ref="PSR1">
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
</rule>
<rule ref="PSR2">
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
<exclude name="Squiz.Commenting.ClosingDeclarationComment.Missing"/>
<exclude name="Squiz.NamingConventions.ConstantCase.Found"/>
<exclude name="Squiz.WhiteSpace.FunctionClosingBraceSpace.SpacingBeforeClose"/>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
</properties>
</rule>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment