Skip to content

Commit

Permalink
fix function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Mar 30, 2024
1 parent 51835ae commit 3dad619
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Standards/AcquiaPHP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

<description>Acquia's PHP coding standards.</description>

<!-- The Acquia PHP standard is PSR-12 modified to be compatible with Drupal standards -->
<rule ref="PSR12">
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="Generic.PHP.LowerCaseConstant"/>
<exclude name="PSR2.Classes.ClassDeclaration"/>
<exclude name="Squiz.Functions.FunctionDeclaration"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration"/>
</rule>

<!-- Drupal sniffs -->
Expand Down Expand Up @@ -150,6 +152,23 @@
<rule ref="Squiz.Arrays.ArrayDeclaration.ValueNoNewline">
<severity>0</severity>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration" />
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine">
<severity>0</severity>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace">
<severity>0</severity>
</rule>
<!-- Standard yet to be finalized on this (https://www.drupal.org/node/1539712). -->
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.FirstParamSpacing">
<severity>0</severity>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.Indent">
<severity>0</severity>
</rule>
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine">
<severity>0</severity>
</rule>
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
Expand Down

0 comments on commit 3dad619

Please sign in to comment.