opensky/Symfony2-coding-standard — pull request #16 by davehauenstein (2012-02-01 22:16:27+00:00)
Title: Added 3 Sniffs: Multiple Classes One File, Blank Line Before Return Statement, Interfaces are Suffixed with "Interface"

The ruleset.xml file lists several requirements that are currently not supported by the Symfony2 Coding Standard project:

Add a blank line before return statements;
Define one class per file;
Suffix interfaces with Interface;

Ive added the following files/classes to support these requirements:

Sniffs/Classes/MultipleClassesOneFileSniff.php
Sniffs/Formatting/BlankLineBeforeReturnSniff.php
Sniffs/NamingConventions/InterfaceSuffixSniff.php

Additional Information:

MultipleClassesOneFileSniff
Throws: Error
Message: "Error: Multiple classes defined in a single file"
BlankLineBeforeReturnSniff
Throws: Error
Message: "Missing blank line before return statement"
InterfaceSuffixSniff
Throws: Error
Message: 'Interface name is not suffixed with "Interface"'