/**
  * Process a pattern.
  *
  * Returns if we are inside a "tmpl" folder - workaround for the Joomla! CMS :(
  *
  * @param array $patternInfo Information about the pattern used for checking, which includes are
  *               parsed token representation of the pattern.
  * @param PHP_CodeSniffer_File $phpcsFile The PHP_CodeSniffer file where the token occured.
  * @param integer $stackPtr The postion in the tokens stack where the listening token type was found.
  *
  * @return return_type
  */
 protected function processPattern($patternInfo, PHP_CodeSniffer_File $phpcsFile, $stackPtr)
 {
     if (0) {
         /*
          * @todo disabled - This is a special sniff for the Joomla! CMS to exclude
          * the tmpl folder which may contain constructs in colon notation
          */
         $parts = explode(DIRECTORY_SEPARATOR, $phpcsFile->getFileName());
         if ('tmpl' == $parts[count($parts) - 2]) {
             return false;
         }
     }
     return parent::processPattern($patternInfo, $phpcsFile, $stackPtr);
 }
 public function __construct()
 {
     parent::__construct(true);
     $this->supportedTokenizers = array('PHP', 'JS');
 }
 /**
  * Constructs a Joomla_Sniffs_ControlStructures_ControlSignatureSniff.
  */
 public function __construct()
 {
     parent::__construct(true);
 }
 /**
  * Constructs a PEAR_Sniffs_ControlStructures_ControlSignatureSniff.
  */
 public function __construct()
 {
     parent::__construct(true);
     $this->error_fijo = '[Funciones#declaracion]';
 }
 /**
  * Constructs a PEAR_Sniffs_ControlStructures_ControlSignatureSniff.
  */
 public function __construct()
 {
     parent::__construct(true);
     $this->error_fijo = '[Control]';
 }