apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]
Packages:
PHP_CodeSniffer


Classes:
PHP_CodeSniffer
AbstractPatternSniff
AbstractScopeSniff
AbstractVariableSniff
AjaxNullComparisonSniff
ArrayBracketSpacingSniff
ArrayDeclarationSniff
AssignThisSniff
Autoload
BacktickOperatorSniff
BlockCommentSniff
BrowserSpecificStylesSniff
ByteOrderMarkSniff
Cache
CallTimePassByReferenceSniff
CamelCapsFunctionNameSniff
CamelCapsMethodNameSniff
CastSpacingSniff
Cbf
CharacterBeforePHPOpeningTagSniff
Checkstyle
ClassCommentSniff
ClassDeclarationSniff
ClassDefinitionClosingBraceSpaceSniff
ClassDefinitionNameSpacingSniff
ClassDefinitionOpeningBraceSpaceSniff
ClassFileNameSniff
ClosingDeclarationCommentSniff
ClosingPHPTagSniff
ClosingTagSniff
ClosureLinterSniff
CodeAnalyzerSniff
ColonSpacingSniff
ColourDefinitionSniff
Comment
CommentedOutCodeSniff
Common
ComparisonOperatorUsageSniff
ConcatenationSpacingSniff
Config
ConstructorNameSniff
ControlSignatureSniff
ControlStructureSpacingSniff
CreateWidgetTypeCallbackSniff
CSS
CSSLintSniff
Csv
CyclomaticComplexitySniff
DebugCodeSniff
DeprecatedFunctionsSniff
Diff
DisallowAlternativePHPTagsSniff
DisallowBooleanStatementSniff
DisallowComparisonAssignmentSniff
DisallowInlineIfSniff
DisallowLongArraySyntaxSniff
DisallowMultipleAssignmentsSniff
DisallowMultipleStatementsSniff
DisallowMultipleStyleDefinitionsSniff
DisallowNewWidgetSniff
DisallowObEndFlushSniff
DisallowObjectStringIndexSniff
DisallowSelfActionsSniff
DisallowShortArraySyntaxSniff
DisallowShortOpenTagSniff
DisallowSizeFunctionsInLoopsSniff
DisallowSpaceIndentSniff
DisallowTabIndentSniff
DiscouragedFunctionsSniff
DocCommentAlignmentSniff
DocCommentSniff
DoubleQuoteUsageSniff
DummyFile
DuplicateClassDefinitionSniff
DuplicateClassNameSniff
DuplicatePropertySniff
DuplicateStyleDefinitionSniff
EchoedStringsSniff
ElseIfDeclarationSniff
Emacs
EmbeddedPhpSniff
EmptyCatchCommentSniff
EmptyClassDefinitionSniff
EmptyStatementSniff
EmptyStyleDefinitionSniff
EndFileNewlineSniff
EndFileNoNewlineSniff
EvalObjectFactorySniff
EvalSniff
ExactMatch
File
FileCommentSniff
FileExtensionSniff
FileList
Filter
FirebugConsoleSniff
Fixer
FixmeSniff
ForbiddenFunctionsSniff
ForbiddenStylesSniff
ForEachLoopDeclarationSniff
ForLoopDeclarationSniff
ForLoopShouldBeWhileLoopSniff
ForLoopWithTestFunctionCallSniff
Full
FunctionCallArgumentSpacingSniff
FunctionCallSignatureSniff
FunctionClosingBraceSniff
FunctionClosingBraceSpaceSniff
FunctionCommentSniff
FunctionCommentThrowTagSniff
FunctionDeclarationArgumentSpacingSniff
FunctionDeclarationSniff
FunctionDuplicateArgumentSniff
FunctionOpeningBraceSpaceSniff
FunctionSpacingSniff
Generator
GetRequestDataSniff
Gitblame
GitModified
GlobalFunctionSniff
GlobalKeywordSniff
HeredocSniff
Hgblame
HTML
IncludeOwnSystemSniff
IncludeSystemSniff
IncludingFileSniff
IncrementDecrementUsageSniff
IndentationSniff
Info
InlineCommentSniff
InlineControlStructureSniff
InlineHTMLSniff
InlineIfDeclarationSniff
InnerFunctionsSniff
JavaScriptLintSniff
JoinStringsSniff
JS
JSHintSniff
JSLintSniff
Json
JumbledIncrementerSniff
Junit
LanguageConstructSpacingSniff
LineEndingsSniff
LineLengthSniff
LocalFile
LogicalOperatorSpacingSniff
LongConditionClosingCommentSniff
LowercaseClassKeywordsSniff
LowerCaseConstantSniff
LowercaseDeclarationSniff
LowercasedFilenameSniff
LowercaseFunctionKeywordsSniff
LowerCaseKeywordSniff
LowercasePHPFunctionsSniff
LowercaseStyleDefinitionSniff
Markdown
MemberVarScopeSniff
MemberVarSpacingSniff
MethodDeclarationSniff
MethodScopeSniff
MissingColonSniff
MultiLineAssignmentSniff
MultiLineConditionSniff
MultiLineFunctionDeclarationSniff
MultipleStatementAlignmentSniff
NamedColoursSniff
NamespaceDeclarationSniff
NestingLevelSniff
NonExecutableCodeSniff
NoSilencedErrorsSniff
NoSpaceAfterCastSniff
Notifysend
ObjectInstantiationSniff
ObjectMemberCommaSniff
ObjectOperatorIndentSniff
ObjectOperatorSpacingSniff
OneClassPerFileSniff
OneInterfacePerFileSniff
OneTraitPerFileSniff
OpacitySniff
OpeningBraceSameLineSniff
OpeningFunctionBraceBsdAllmanSniff
OpeningFunctionBraceKernighanRitchieSniff
OperatorBracketSniff
OperatorSpacingSniff
PHP
PostStatementCommentSniff
PropertyDeclarationSniff
PropertyLabelSpacingSniff
Reporter
ReturnFunctionValueSniff
Ruleset
Runner
RuntimeException
SAPIUsageSniff
ScopeClosingBraceSniff
ScopeIndentSniff
ScopeKeywordSpacingSniff
SelfMemberReferenceSniff
SemicolonSpacingSniff
ShorthandSizeSniff
SideEffectsSniff
Source
SpaceAfterCastSniff
SpaceAfterNotSniff
Standards
StaticThisUsageSniff
SubversionPropertiesSniff
Summary
SuperfluousWhitespaceSniff
Svnblame
SwitchDeclarationSniff
SyntaxSniff
Text
Timing
TodoSniff
Tokenizer
TokenizerException
Tokens
UnconditionalIfStatementSniff
UnnecessaryFinalModifierSniff
UnnecessaryStringConcatSniff
UnusedFunctionParameterSniff
UnusedSystemSniff
UpperCaseConstantNameSniff
UpperCaseConstantSniff
UseDeclarationSniff
UselessOverridingMethodSniff
ValidClassNameSniff
ValidDefaultValueSniff
ValidFunctionNameSniff
ValidLogicalOperatorsSniff
ValidVariableNameSniff
VariableCommentSniff
VersionControl
Xml

Class: LocalFile

Source Location: /PHP_CodeSniffer-3.0.0RC2/src/Files/LocalFile.php

Class Overview

File
 |
 --LocalFile

A local file represents a chunk of text has a file system location.


Author(s):

Copyright:

  • 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)

Methods


Inherited Variables

Class: File

File::$activeListener
File::$config
File::$configCache
File::$content
File::$eolChar
File::$errorCount
File::$errors
File::$fixableCount
File::$fixedCount
File::$fixer
File::$fromCache
File::$ignored
File::$ignoredCodes
File::$ignoredListeners
File::$listeners
File::$listenerTimes
File::$metrics
File::$numTokens
File::$path
File::$ruleset
File::$tokenizer
File::$tokens
File::$warningCount
File::$warnings

Inherited Methods

Class: File

File::__construct()
Constructs a file.
File::addError()
Records an error against a specific token in the file.
File::addErrorOnLine()
Records an error against a specific line in the file.
File::addFixableError()
Records a fixable error against a specific token in the file.
File::addFixableWarning()
Records a fixable warning against a specific token in the file.
File::addMessage()
Adds an error to the error stack.
File::addWarning()
Records a warning against a specific token in the file.
File::addWarningOnLine()
Records a warning against a specific token in the file.
File::cleanUp()
Remove vars stored in this file that are no longer required.
File::disableCaching()
Disables caching of this file.
File::findEndOfStatement()
Returns the position of the last non-whitespace token in a statement.
File::findExtendedClassName()
Returns the name of the class that the specified class extends.
File::findFirstOnLine()
Returns the position of the first token on a line, matching given type.
File::findImplementedInterfaceNames()
Returns the names of the interfaces that the specified class implements.
File::findNext()
Returns the position of the next specified token(s).
File::findPrevious()
Returns the position of the previous specified token(s).
File::findStartOfStatement()
Returns the position of the first non-whitespace token in a statement.
File::getClassProperties()
Returns the visibility and implementation properties of a class.
File::getCondition()
Return the position of the condition for the passed token.
File::getDeclarationName()
Returns the declaration names for T_CLASS, T_INTERFACE and T_FUNCTION tokens.
File::getErrorCount()
Returns the number of errors raised.
File::getErrors()
Returns the errors raised from processing this file.
File::getFilename()
Returns the absolute filename of this file.
File::getFixableCount()
Returns the number of fixable errors/warnings raised.
File::getFixedCount()
Returns the number of fixed errors/warnings.
File::getIgnoredLines()
Returns the list of ignored lines.
File::getMemberProperties()
Returns the visibility and implementation properties of the class member variable found at the specified position in the stack.
File::getMethodParameters()
Returns the method parameters for the specified T_FUNCTION token.
File::getMethodProperties()
Returns the visibility and implementation properties of a method.
File::getMetrics()
Returns the metrics found while processing this file.
File::getSuccessCount()
Returns the number of successes recorded.
File::getTokens()
Returns the token stack for this file.
File::getTokensAsString()
Returns the content of the tokens from the specified start position in the token stack for the specified length.
File::getWarningCount()
Returns the number of warnings raised.
File::getWarnings()
Returns the warnings raised from processing this file.
File::hasCondition()
Determine if the passed token has a condition of one of the passed types.
File::isAnonymousFunction()
Check if the token at the specified position is a anonymous function.
File::isReference()
Determine if the passed token is a reference operator.
File::parse()
Tokenizes the file and prepares it for the test run.
File::process()
Starts the stack traversal and tells listeners when tokens are found.
File::recordMetric()
Adds an warning to the warning stack.
File::reloadContent()
Reloads the content of the file.
File::setContent()
Set the content of the file.

Class Details

[line 16]
A local file represents a chunk of text has a file system location.


[ Top ]


Method Detail

__construct (Constructor) [line 29]

void __construct( string $path, Ruleset $ruleset, Config $config)

Creates a LocalFile object and sets the content.
  • Access: public

Overrides File::__construct() (Constructs a file.)

Parameters:

string $path — The absolute path to the file.
\PHP_CodeSniffer\Ruleset $ruleset — The ruleset used for the run.
\PHP_CodeSniffer\Config $config — The config data for the run.

[ Top ]

process [line 85]

void process( )

Processes the file.
  • Access: public

Overrides File::process() (Starts the stack traversal and tells listeners when tokens are found.)
[ Top ]

reloadContent [line 73]

void reloadContent( )

Loads the latest version of the file's content from the file system.

Overrides File::reloadContent() (Reloads the content of the file.)
[ Top ]


Documentation generated on 2019年3月11日 14:49:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.

AltStyle によって変換されたページ (->オリジナル) /