<?xml version="1.0"?>
<ruleset name="PSR2 Transitional">
    <!-- Require short array syntax, not long array syntax -->
    <rule ref="Generic.Arrays.DisallowLongArraySyntax" />

    <!-- Every file should end with a new line -->
    <rule ref="Generic.Files.EndFileNewline" />

    <!-- Line ending characters should all be \n -->
    <rule ref="Generic.Files.LineEndings" />

    <!-- Double quotes should be used only when necessary, otherwise use single quotes -->
    <rule ref="Squiz.Strings.DoubleQuoteUsage" />

    <!-- Require 1 space before/after operators -->
    <rule ref="Squiz.WhiteSpace.OperatorSpacing">
        <properties>
            <property name="ignoreNewlines" value="true"/>
        </properties>
    </rule>

    <!-- Enforce line-too-long rules -->
    <rule ref="Generic.Files.LineLength.TooLong" />

    <!-- Require PSR2 Rules -->
    <rule ref="PSR2" />
</ruleset>
