Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added phpcs.xml and fixed some minor formatting issues accordingly
- Loading branch information
Showing
7 changed files
with
52 additions
and
9 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,40 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Arne"> | ||
<description>Arne Blankerts' coding standard</description> | ||
|
||
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> | ||
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/> | ||
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> | ||
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> | ||
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> | ||
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> | ||
|
||
<rule ref="Generic.Commenting.Todo"/> | ||
|
||
<rule ref="Generic.ControlStructures.InlineControlStructure"/> | ||
|
||
<rule ref="Generic.Files.LineEndings"> | ||
<properties> | ||
<property name="eolChar" value="\n"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="Generic.Formatting.DisallowMultipleStatements"/> | ||
<rule ref="Generic.Formatting.NoSpaceAfterCast"/> | ||
|
||
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" /> | ||
<rule ref="Generic.Functions.FunctionCallArgumentSpacing" /> | ||
<rule ref="PEAR.Functions.ValidDefaultValue"/> | ||
|
||
<rule ref="Generic.NamingConventions.ConstructorName"/> | ||
<rule ref="PEAR.NamingConventions.ValidClassName"/> | ||
|
||
<rule ref="Generic.PHP.DisallowShortOpenTag"/> | ||
<rule ref="Generic.PHP.NoSilencedErrors"/> | ||
|
||
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/> | ||
|
||
<!-- Namespace handling broken, so disabled --> | ||
<!-- <rule ref="Generic.WhiteSpace.ScopeIndent"/> --> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/> | ||
</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
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
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
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
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
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