當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PHP_CodeSniffer_Standards_AbstractScopeSniff類代碼示例

本文整理匯總了PHP中PHP_CodeSniffer_Standards_AbstractScopeSniff的典型用法代碼示例。如果您正苦於以下問題:PHP PHP_CodeSniffer_Standards_AbstractScopeSniff類的具體用法?PHP PHP_CodeSniffer_Standards_AbstractScopeSniff怎麽用?PHP PHP_CodeSniffer_Standards_AbstractScopeSniff使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了PHP_CodeSniffer_Standards_AbstractScopeSniff類的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類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。