<?xml version="1.0"?>
<ruleset name="PSR2">
    <description>The PSR2 coding standard.</description>

    <rule ref="PSR2"/>

    <rule ref="PSR1.Methods.CamelCapsMethodName">
        <exclude-pattern>*/**/tests</exclude-pattern>
    </rule>

    <rule ref="Generic.Files.LineLength.TooLong">
        <exclude-pattern>*/**/tests</exclude-pattern>
        <exclude-pattern>*/**/src/Console/InstallCommand.php</exclude-pattern>
        <exclude-pattern>*/**/src/SwaggerUiServiceProvider.php</exclude-pattern>
    </rule>

    <rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
        <exclude-pattern>*/**/tests</exclude-pattern>
    </rule>

    <rule ref="Generic.PHP.ForbiddenFunctions">
        <properties>
            <property name="forbiddenFunctions" type="array" value="dd=>NULL,var_dump=>NULL,dump=>NULL"/>
        </properties>
    </rule>

    <file>src/</file>
    <file>tests/</file>

    <exclude-pattern>vendor/</exclude-pattern>
    <exclude-pattern>node_modules/</exclude-pattern>
</ruleset>
