Exemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see PHP_CodeSniffer_Sniff::register()
  */
 public function register()
 {
     // get range from config
     $minVersion = Foobugs_Standard_RunHelper::getPhpReferenceVersion();
     $maxVersion = Foobugs_Standard_RunHelper::getPhpTargetVersion();
     // load configuration and test
     $success = Foobugs_Standard_ConfigHelper::configureSniff($this, $maxVersion, $minVersion);
     if (!$success) {
         Foobugs_Standard_RunHelper::markSniffSkipped(get_class($this));
         return array();
     }
     // TODO load configuration for range
     return $this->fooRegisterToken;
 }