Add PHP CS Fixer (#12128)

* Add PHP CS Fixer

Based on https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Apply PHP CS
This commit is contained in:
Jellyfrog
2020-09-22 02:52:01 +02:00
committed by GitHub
parent c207f1dbcf
commit bef67751a3
33 changed files with 295 additions and 191 deletions

View File

@@ -1,18 +0,0 @@
<?xml version="1.0"?>
<ruleset name="librenms">
<description>The PSR2 coding standard with LibreNMS exceptions.</description>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/storage/*</exclude-pattern>
<exclude-pattern>/bootstrap/cache/*</exclude-pattern>
<exclude-pattern>/html/plugins/*</exclude-pattern>
<exclude-pattern>/config.php</exclude-pattern>
<exclude-pattern>/_ide_helper.php</exclude-pattern>
<exclude-pattern>/_ide_helper_models.php</exclude-pattern>
<rule ref="PSR2" >
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>/database/seeds/*</exclude-pattern>
<exclude-pattern>/database/migrations/*</exclude-pattern>
</rule>
</ruleset>