BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Files\LocalFile Class Reference
Inheritance diagram for PHP_CodeSniffer\Files\LocalFile:
Collaboration diagram for PHP_CodeSniffer\Files\LocalFile:

Public Member Functions

 __construct ($path, Ruleset $ruleset, Config $config)
 
 reloadContent ()
 
 process ()
 
- Public Member Functions inherited from PHP_CodeSniffer\Files\File
 __construct ($path, Ruleset $ruleset, Config $config)
 
 setContent ($content)
 
 reloadContent ()
 
 disableCaching ()
 
 process ()
 
 parse ()
 
 getTokens ()
 
 cleanUp ()
 
 addError ($error, $stackPtr, $code, $data=array(), $severity=0, $fixable=false)
 
 addWarning ($warning, $stackPtr, $code, $data=array(), $severity=0, $fixable=false)
 
 addErrorOnLine ($error, $line, $code, $data=array(), $severity=0)
 
 addWarningOnLine ($warning, $line, $code, $data=array(), $severity=0)
 
 addFixableError ($error, $stackPtr, $code, $data=array(), $severity=0)
 
 addFixableWarning ($warning, $stackPtr, $code, $data=array(), $severity=0)
 
 recordMetric ($stackPtr, $metric, $value)
 
 getErrorCount ()
 
 getWarningCount ()
 
 getSuccessCount ()
 
 getFixableCount ()
 
 getFixedCount ()
 
 getIgnoredLines ()
 
 getErrors ()
 
 getWarnings ()
 
 getMetrics ()
 
 getFilename ()
 
 getDeclarationName ($stackPtr)
 
 getMethodParameters ($stackPtr)
 
 getMethodProperties ($stackPtr)
 
 getMemberProperties ($stackPtr)
 
 getClassProperties ($stackPtr)
 
 isReference ($stackPtr)
 
 getTokensAsString ($start, $length)
 
 findPrevious ($types, $start, $end=null, $exclude=false, $value=null, $local=false)
 
 findNext ($types, $start, $end=null, $exclude=false, $value=null, $local=false)
 
 findStartOfStatement ($start, $ignore=null)
 
 findEndOfStatement ($start, $ignore=null)
 
 findFirstOnLine ($types, $start, $exclude=false, $value=null)
 
 hasCondition ($stackPtr, $types)
 
 getCondition ($stackPtr, $type)
 
 findExtendedClassName ($stackPtr)
 
 findImplementedInterfaceNames ($stackPtr)
 

Additional Inherited Members

- Public Attributes inherited from PHP_CodeSniffer\Files\File
 $path = ''
 
 $config = null
 
 $ruleset = null
 
 $ignored = false
 
 $eolChar = ''
 
 $fixer = null
 
 $tokenizer = null
 
 $fromCache = false
 
 $numTokens = 0
 
- Protected Member Functions inherited from PHP_CodeSniffer\Files\File
 addMessage ($error, $message, $line, $column, $code, $data, $severity, $fixable)
 
- Protected Attributes inherited from PHP_CodeSniffer\Files\File
 $content = ''
 
 $tokens = array()
 
 $errors = array()
 
 $warnings = array()
 
 $metrics = array()
 
 $errorCount = 0
 
 $warningCount = 0
 
 $fixableCount = 0
 
 $fixedCount = 0
 
 $ignoredListeners = array()
 
 $ignoredCodes = array()
 
 $listeners = array()
 
 $activeListener = ''
 
 $listenerTimes = array()
 
 $configCache = array()
 

Constructor & Destructor Documentation

PHP_CodeSniffer\Files\LocalFile::__construct (   $path,
Ruleset  $ruleset,
Config  $config 
)

Creates a LocalFile object and sets the content.

Parameters
string$pathThe absolute path to the file.
\PHP_CodeSniffer\Ruleset$rulesetThe ruleset used for the run.
\PHP_CodeSniffer\Config$configThe config data for the run.
Returns
void

Member Function Documentation

PHP_CodeSniffer\Files\LocalFile::process ( )

Processes the file.

Returns
void
PHP_CodeSniffer\Files\LocalFile::reloadContent ( )

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

Returns
void

The documentation for this class was generated from the following file: