-
Notifications
You must be signed in to change notification settings - Fork 0
/
__CmantixCodingStandard.php
35 lines (32 loc) · 1 KB
/
__CmantixCodingStandard.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Cmantix Coding Standard.
*/
if (class_exists('PHP_CodeSniffer_Standards_CodingStandard', true) === false) {
throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_CodingStandard not found');
}
class PHP_CodeSniffer_Standards_Cmantix_CmantixCodingStandard
extends PHP_CodeSniffer_Standards_CodingStandard
{
/**
* C-Mantix imported Sniffs
*
* @throws PHP_CodeSniffer_Exception
*
* @return array
*/
public function getIncludedSniffs()
{
return array(
'Generic/Sniffs/Files/LineEndingsSniff.php',
'Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php',
'PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php',
'Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php',
'Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php',
'PEAR/Sniffs/Functions/FunctionCallArgumentSpacingSniff.php',
'PEAR/Sniffs/Commenting/InlineCommentSniff.php',
'Zend/Sniffs/Files/ClosingTagSniff.php',
'Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php',
);
}
}