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