/**
  * Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_THROW));
 }
 /**
  * Constructs a Squiz_Sniffs_Classes_SelfMemberReferenceSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS), array(T_DOUBLE_COLON));
 }
 /**
  * Constructs the test with the tokens it wishes to listen for.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS), array(T_FUNCTION));
 }
 /**
  * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_DOUBLE_COLON, T_EXTENDS), true);
 }
Exemplo n.º 5
0
 /**
  * Constructs an AbstractVariableTest.
  */
 public function __construct()
 {
     $scopes = array(T_CLASS, T_TRAIT, T_INTERFACE);
     $listen = array(T_FUNCTION, T_VARIABLE, T_DOUBLE_QUOTED_STRING, T_HEREDOC);
     parent::__construct($scopes, $listen, true);
 }
Exemplo n.º 6
0
 /**
  * Constructs an AbstractVariableTest.
  */
 public function __construct()
 {
     $listen = array(T_CLASS, T_INTERFACE);
     $scopes = array(T_FUNCTION, T_VARIABLE, T_DOUBLE_QUOTED_STRING);
     parent::__construct($listen, $scopes, true);
 }
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_COMMENT, T_DOC_COMMENT), true);
 }
 /**
  * Constructs the test with the tokens it wishes to listen for.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_CLOSE_CURLY_BRACKET));
 }
 /**
  * Construct PropertyCommentSniff
  */
 function __construct()
 {
     $scopes = array(T_CLASS);
     parent::__construct($scopes, $this->_tokenTypes, true);
 }
 /**
  * Construct PropertyCommentSniff
  */
 function __construct()
 {
     $scopes = array(T_CLASS);
     $listen = array(T_VARIABLE);
     parent::__construct($scopes, $listen, true);
 }
 /**
  * Constructs the test with the tokens it wishes to listen for.
  */
 public function __construct()
 {
     parent::__construct([T_CLASS], [T_ELSEIF, T_ELSE]);
 }
 /**
  * This constructor tells the parent object that we want to find strings (including unquoted) in
  * loops.
  *
  * @return array The array of tokens to run this sniff on.
  */
 public function __construct()
 {
     parent::__construct(array(T_DO, T_FOR, T_FOREACH, T_WHILE), array(T_STRING));
 }
 /**
  * Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
  */
 public function __construct()
 {
     parent::__construct([T_CLASS, T_INTERFACE], [T_FUNCTION], true);
 }
 /**
  * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION));
 }
Exemplo n.º 15
0
 /**
  * Constructs a Symfony2_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct([T_CLASS], [T_FUNCTION]);
 }
 /**
  * Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS, T_INTERFACE, T_TRAIT), array(T_FUNCTION), true);
 }
Exemplo n.º 17
0
 /**
  * Constructs an AbstractVariableTest.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION, T_VARIABLE, T_DOUBLE_QUOTED_STRING), true);
 }