Skip to content

Commit

Permalink
Update lint-php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Sep 24, 2023
1 parent 5f1a59f commit d0b1c81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint PHP
name: PHP Code Sniffer

on:
push:
Expand Down
7 changes: 6 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
<rule ref="PSR1.Files.SideEffects"/>
<rule ref="PSR2.Classes.ClassDeclaration"/>
<rule ref="PSR2.Classes.PropertyDeclaration"/>
<rule ref="PSR2.ControlStructures.ControlStructureSpacing"/>
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
<rule ref="PSR2.ControlStructures.SwitchDeclaration"/>
<rule ref="PSR2.Files.EndFileNewline"/>
Expand Down Expand Up @@ -133,6 +132,12 @@
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
<rule ref="Zend.Files.ClosingTag"/>

<rule ref="PSR2.ControlStructures.ControlStructureSpacing">
<properties>
<property name="maxLineLength" value="1000" />
</properties>
</rule>

<exclude-pattern>*/.phpstorm.meta.php</exclude-pattern>
<exclude-pattern>*/_ide_helper.php</exclude-pattern>
<exclude-pattern>*/database/*</exclude-pattern>
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/nunomaduro/larastan

includes:
- .larastan-extension.neon
- ./larastan-extension.neon

parameters:

Expand Down

0 comments on commit d0b1c81

Please sign in to comment.