1<?xml version="1.0"?> 2<ruleset name="sabre.php"> 3 <description>sabre.io codesniffer ruleset</description> 4 5 <!-- Include the whole PSR-1 standard --> 6 <rule ref="PSR1" /> 7 8 <!-- All PHP files MUST use the Unix LF (linefeed) line ending. --> 9 <rule ref="Generic.Files.LineEndings"> 10 <properties> 11 <property name="eolChar" value="\n"/> 12 </properties> 13 </rule> 14 15 <!-- The closing ?> tag MUST be omitted from files containing only PHP. --> 16 <rule ref="Zend.Files.ClosingTag"/> 17 18 <!-- There MUST NOT be trailing whitespace at the end of non-blank lines. --> 19 <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"> 20 <properties> 21 <property name="ignoreBlankLines" value="true"/> 22 </properties> 23 </rule> 24 25 <!-- There MUST NOT be more than one statement per line. --> 26 <rule ref="Generic.Formatting.DisallowMultipleStatements"/> 27 28 <rule ref="Generic.WhiteSpace.ScopeIndent"> 29 <properties> 30 <property name="ignoreIndentationTokens" type="array" value="T_COMMENT,T_DOC_COMMENT"/> 31 </properties> 32 </rule> 33 <rule ref="Generic.WhiteSpace.DisallowTabIndent"/> 34 35 <!-- PHP keywords MUST be in lower case. --> 36 <rule ref="Generic.PHP.LowerCaseKeyword"/> 37 38 <!-- The PHP constants true, false, and null MUST be in lower case. --> 39 <rule ref="Generic.PHP.LowerCaseConstant"/> 40 41 <rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/> 42 43 <!-- In the argument list, there MUST NOT be a space before each comma, and there MUST be one space after each comma. --> 44 <!-- 45 <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing"> 46 <properties> 47 <property name="equalsSpacing" value="1"/> 48 </properties> 49 </rule> 50 <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint"> 51 <severity>0</severity> 52 </rule> 53 --> 54 <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/> 55 56</ruleset> 57