Exemplo n.º 1
0
 /**
  * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_DOUBLE_COLON, T_EXTENDS), true);
 }
Exemplo n.º 2
0
 /**
  * Constructs the test with the tokens it wishes to listen for.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION), true);
 }
Exemplo n.º 3
0
 /**
  * Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_THROW));
 }
Exemplo n.º 4
0
 /**
  * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS, T_INTERFACE, T_TRAIT), array(T_FUNCTION));
 }
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 a Squiz_Sniffs_Classes_SelfMemberReferenceSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS), array(T_DOUBLE_COLON));
 }
Exemplo n.º 7
0
 /**
  * Constructs the test with the tokens it wishes to listen for.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS), array(T_FUNCTION));
 }