Skip to content

Commit

Permalink
ci(phpcs): allow short ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
harunbleech committed Nov 24, 2023
1 parent 777d15f commit 7f58c94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
</properties>
</rule>

<!-- Allow short Ternary -->
<rule ref="WordPress.PHP.DisallowShortTernary.Found">
<exclude name="WordPress.PHP.DisallowShortTernary.Found" />
</rule>

<!-- Allow short array syntax -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
Expand Down

0 comments on commit 7f58c94

Please sign in to comment.