<?xml version="1.0"?>
<ruleset
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        name="JoindIn"
        xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
 <description>The Joind.in coding standard (PSR2, no namespace).</description>

 <exclude-pattern>**/config.php</exclude-pattern>
 <exclude-pattern>**/database.php</exclude-pattern>
 <exclude-pattern>build</exclude-pattern>
 <exclude-pattern>tools</exclude-pattern>
 <exclude-pattern>tests/bootstrap.php</exclude-pattern>
 <exclude-pattern>vendor</exclude-pattern>

 <arg name="basepath" value="."/>
 <arg name="cache" value="build/.phpcs-cache "/>
 <arg name="colors"/>
 <arg name="extensions" value="php"/>

 <file>src/</file>
 <file>tests/</file>
 <!--
    Include all sniffs in the PSR2 standard except these which we override
    to turn off certain requirements
 -->
 <rule ref="PSR2">
  <!-- Exclude the "Each class must be in a namespace of at least one level"  -->
  <exclude name="PSR1.Classes.ClassDeclaration"/>
 </rule>
</ruleset>

<?xml version="1.0"?>
<ruleset
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        name="JoindIn"
        xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
 <description>The Joind.in coding standard</description>

 <exclude-pattern>**/config.php</exclude-pattern>
 <exclude-pattern>**/database.php</exclude-pattern>
 <exclude-pattern>build</exclude-pattern>
 <exclude-pattern>tools</exclude-pattern>
 <exclude-pattern>tests/bootstrap.php</exclude-pattern>
 <exclude-pattern>vendor</exclude-pattern>

 <arg name="basepath" value="."/>
 <arg name="cache" value="build/.phpcs-cache "/>
 <arg name="colors"/>
 <arg name="extensions" value="php"/>

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

 <rule ref="PSR12" />
</ruleset>

Use PSR-12 instead of PSR-2 coding standard
Enhancement: Use PSR-12 instead of PSR-2 coding standard
