Skip to content

Commit ae66426

Browse files
committed
Added getSniffs method to return the listeners array
git-svn-id: http://svn.php.net/repository/pear/packages/PHP_CodeSniffer/trunk@248460 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 4eb922e commit ae66426

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CodeSniffer.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,18 @@ public function getFiles()
10171017
}//end getFiles()
10181018

10191019

1020+
/**
1021+
* Gets the array of PHP_CodeSniffer_Sniff's.
1022+
*
1023+
* @return array(PHP_CodeSniffer_Sniff)
1024+
*/
1025+
public function getSniffs()
1026+
{
1027+
return $this->listeners;
1028+
1029+
}//end getSniffs()
1030+
1031+
10201032
/**
10211033
* Takes a token produced from <code>token_get_all()</code> and produces a
10221034
* more uniform token.

0 commit comments

Comments
 (0)