Created
November 22, 2011 15:27
-
-
Save alister/1385932 to your computer and use it in GitHub Desktop.
php code sniffer extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// in the ..../Example/ directory | |
require_once 'PHP/CodeSniffer/Standards/CodingStandard.php'; | |
class PHP_CodeSniffer_Standards_Example_ExampleCodingStandard | |
extends PHP_CodeSniffer_Standards_CodingStandard | |
{ | |
function getIncludedSniffs() | |
{ | |
return array( | |
'PEAR', // the main PEAR standards | |
// Add our other standards, all from a subdir | |
dirname(__FILE__).'/Standards', | |
); | |
} | |
function getExcludedSniffs() | |
{ | |
return array(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment