当前位置: 首页>>代码示例>>PHP>>正文


PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法代码示例

本文整理汇总了PHP中PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法的具体用法?PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct怎么用?PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHP_CodeSniffer_Standards_AbstractScopeSniff的用法示例。


在下文中一共展示了PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_THROW));
 }
开发者ID:ulabox,项目名称:ulabox-coding-standard,代码行数:7,代码来源:FunctionCommentThrowTagSniff.php

示例2: __construct

 /**
  * Constructs a Squiz_Sniffs_Classes_SelfMemberReferenceSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS), array(T_DOUBLE_COLON));
 }
开发者ID:SebFav,项目名称:ApplicationInternet2,代码行数:7,代码来源:SelfMemberReferenceSniff.php

示例3: __construct

 /**
  * Constructs the test with the tokens it wishes to listen for.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS), array(T_FUNCTION));
 }
开发者ID:greencape,项目名称:coding-standards,代码行数:7,代码来源:StaticThisUsageSniff.php

示例4: __construct

 /**
  * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_DOUBLE_COLON, T_EXTENDS), true);
 }
开发者ID:CobaltBlueDW,项目名称:oddsandends,代码行数:7,代码来源:IncludeSystemSniff.php

示例5: __construct

 /**
  * 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);
 }
开发者ID:gjcamacho,项目名称:blog_test,代码行数:9,代码来源:AbstractVariableSniff.php

示例6: __construct

 /**
  * 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);
 }
开发者ID:knevcher,项目名称:limb-tools,代码行数:9,代码来源:AbstractVariableSniff.php

示例7: __construct

 public function __construct()
 {
     parent::__construct(array(T_FUNCTION), array(T_COMMENT, T_DOC_COMMENT), true);
 }
开发者ID:jnadaud,项目名称:PrestaShop-norm-validator,代码行数:4,代码来源:CommentsInFunctionSniff.php

示例8: __construct

 /**
  * 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));
 }
开发者ID:ookwudili,项目名称:chisimba,代码行数:9,代码来源:FunctionClosingBraceSpaceSniff.php

示例9: array

 /**
  * Construct PropertyCommentSniff
  */
 function __construct()
 {
     $scopes = array(T_CLASS);
     parent::__construct($scopes, $this->_tokenTypes, true);
 }
开发者ID:aguenther,项目名称:mo4-coding-standard,代码行数:8,代码来源:PropertyCommentSniff.php

示例10: array

 /**
  * Construct PropertyCommentSniff
  */
 function __construct()
 {
     $scopes = array(T_CLASS);
     $listen = array(T_VARIABLE);
     parent::__construct($scopes, $listen, true);
 }
开发者ID:xalopp,项目名称:mo4-coding-standard,代码行数:9,代码来源:PropertyCommentSniff.php

示例11: __construct

 /**
  * Constructs the test with the tokens it wishes to listen for.
  */
 public function __construct()
 {
     parent::__construct([T_CLASS], [T_ELSEIF, T_ELSE]);
 }
开发者ID:chadicus,项目名称:coding-standard,代码行数:7,代码来源:ElseIfAndElseDeclarationSniff.php

示例12: __construct

 /**
  * 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));
 }
开发者ID:POETGroup,项目名称:poet-coding-standard,代码行数:10,代码来源:LoopedFunctionSniff.php

示例13: __construct

 /**
  * Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
  */
 public function __construct()
 {
     parent::__construct([T_CLASS, T_INTERFACE], [T_FUNCTION], true);
 }
开发者ID:loadsys,项目名称:loadsys_codesniffer,代码行数:7,代码来源:ValidPrivateProtectedFunctionNameSniff.php

示例14: __construct

 /**
  * Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION));
 }
开发者ID:eduardobenito10,项目名称:jenkins-php-quickstart,代码行数:7,代码来源:MethodDeclarationSniff.php

示例15: __construct

 /**
  * Constructs a Symfony2_Sniffs_Scope_MethodScopeSniff.
  */
 public function __construct()
 {
     parent::__construct([T_CLASS], [T_FUNCTION]);
 }
开发者ID:smile-sa,项目名称:elasticsuite,代码行数:7,代码来源:MethodScopeSniff.php


注:本文中的PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。