mirror of
https://github.com/Respect/Validation.git
synced 2024-05-14 20:26:35 +02:00
fefe905e0b
When converting an object into an array, we exclude the message root message from it. Since we're using a convention to template those messages as an array, we could also use the same convention to return those messages. While working on it, I noticed that the name "__self__" wasn't reflecting what that really meant, so I renamed it "__root__" because it better reflects the meaning of those messages/templates. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
22 lines
631 B
XML
22 lines
631 B
XML
<?xml version="1.0"?>
|
|
<ruleset
|
|
name="PHPCS Coding Standards for Respect"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
|
|
>
|
|
<arg name="basepath" value="." />
|
|
<arg name="cache" value=".phpcs.cache" />
|
|
<arg name="colors" />
|
|
<arg name="extensions" value="php,phpt" />
|
|
<arg value="p" />
|
|
<arg value="s" />
|
|
|
|
<file>library/</file>
|
|
<file>tests/</file>
|
|
|
|
<rule ref="Respect" />
|
|
<rule ref="Generic.Files.LineLength.TooLong">
|
|
<exclude-pattern>tests/integration/</exclude-pattern>
|
|
</rule>
|
|
</ruleset>
|