Skip to content

Commit

Permalink
make phpcs stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT committed Sep 21, 2024
1 parent 4161ace commit 6d1b31a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.PHP.BacktickOperator"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Squiz.Operators.ValidLogicalOperators"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4" />
<property name="tabIndent" value="false" />
<property name="indent" value="4"/>
<property name="tabIndent" value="false"/>
</properties>
</rule>

<rule ref="Generic.Files.EndFileNewline"/>
<rule ref="PSR12.ControlStructures.BooleanOperatorPlacement"/>
<rule ref="Generic.Files.LineEndings"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>

<!-- PHP Version Compatibility -->
<rule ref="Generic.PHP.DisallowShortOpenTag"/>

<!-- Don't hide tokenizer exceptions -->
<rule ref="Internal.Tokenizer.Exception">
<type>error</type>
Expand Down

0 comments on commit 6d1b31a

Please sign in to comment.