PHP Class Exakat\Analyzer\Analyzer

Show file Open project: exakat/exakat Class Usage Examples

Public Properties

Property Type Description
$CONTAINERS
$LITERALS
$analyzers
$datastore
$docs
$gremlinStatic

Protected Properties

Property Type Description
$analyzerQuoted Current class of the analyzer (called from below)
$code
$config
$description
$gremlin
$linksDown
$phpConfiguration
$phpVersion
$processedCount Number of found values
$queryCount Number of initial values
$rawQueryCount Number of ran queries
$rowCount
$severity
$timeToFix

Public Methods

Method Description
__construct ( $gremlin )
__destruct ( )
_as ( $name )
analyze ( )
analyzerIs ( $analyzer )
analyzerIsNot ( $analyzer )
atomFunctionIs ( $atom )
atomInside ( $atom )
atomIs ( $atom )
atomIsNot ( $atom )
back ( $name )
checkPhpVersion ( $version )
checkphpConfiguration ( $Php )
classDefinition ( )
cleanAnalyzerName ( $gremlin )
codeIs ( $code, $caseSensitive = false )
codeIsNot ( $code, $caseSensitive = false )
codeIsPositiveInteger ( )
codeLength ( $length = ' == 1 ' )
debugQuery ( )
dependsOn ( ) @doc by default, nothing.
eachCounted ( $variable, $times, $comp = '==' )
execQuery ( )
fetchContext ( $context = self::CONTEXT_OUTSIDE_CLOSURE )
filter ( $filter, $arguments = null )
fullcodeIs ( $code, $caseSensitive = false )
fullcodeIsNot ( $code, $caseSensitive = false )
fullcodeLength ( $length = ' == 1 ' )
fullnspathIs ( $code )
fullnspathIsNot ( $code )
functionDefinition ( )
functioncallIs ( $fullnspath )
getAnalyzers ( $theme )
getAppinfoHeader ( $lang = 'en' )
getClass ( $name )
getDescription ( )
getDump ( )
getInBaseName ( )
getInstance ( $name )
getName ( $classname )
getPhpversion ( )
getProcessedCount ( )
getQueryCount ( )
getRawQueryCount ( )
getRowCount ( )
getSeverity ( )
getSuggestionClass ( $name )
getSuggestionThema ( $thema )
getThemeAnalyzers ( $theme = null )
getThemes ( )
getTimeToFix ( )
getphpConfiguration ( )
goToAllChildren ( $self = self::INCLUDE_SELF )
goToAllParents ( $self = self::INCLUDE_SELF )
goToAllTraits ( $self = self::INCLUDE_SELF )
goToArray ( )
goToClass ( )
goToClassInterface ( )
goToClassInterfaceTrait ( )
goToClassTrait ( )
goToCurrentScope ( )
goToExtends ( )
goToFile ( )
goToFunction ( )
goToImplements ( )
goToInterface ( )
goToLoop ( )
goToNamespace ( )
goToParent ( )
goToTrait ( )
goToTraits ( )
groupCount ( $column )
groupFilter ( $characteristic, $percentage )
hasChildren ( $childrenClass, $outs = [] )
hasClass ( )
hasClassDefinition ( )
hasClassInterface ( )
hasClassTrait ( )
hasConstantDefinition ( )
hasFunction ( )
hasFunctionDefinition ( )
hasIfthen ( )
hasIn ( $edgeName )
hasInterface ( )
hasInterfaceDefinition ( )
hasLoop ( )
hasName ( )
hasNoCatch ( )
hasNoCatchBlock ( )
hasNoChildren ( $childrenClass, $outs = [] )
hasNoClass ( )
hasNoClassInterface ( )
hasNoClassInterfaceTrait ( )
hasNoClassTrait ( )
hasNoComparison ( )
hasNoConstantDefinition ( )
hasNoFunction ( )
hasNoFunctionDefinition ( )
hasNoIfthen ( )
hasNoIn ( $edgeName )
hasNoInterface ( )
hasNoNamedFunction ( $name )
hasNoOut ( $edgeName )
hasNoParent ( $parentClass, $ins = [] )
hasNoTrait ( )
hasNoTryCatch ( )
hasOut ( $edgeName )
hasParent ( $parentClass, $ins = [] )
hasResults ( )
hasTrait ( )
hasTraitDefinition ( )
hasTryCatch ( )
ignore ( )
inIs ( $edgeName )
inIsNot ( $edgeName )
init ( )
initDocs ( )
interfaceDefinition ( )
is ( $property, $value = true )
isInCatchBlock ( )
isLambda ( )
isLess ( $property, $value )
isLiteral ( )
isLocalClass ( )
isLowercase ( $property = 'fullcode' )
isMore ( $property, $value )
isNot ( $property, $value = true )
isNotLambda ( )
isNotLocalClass ( )
isNotLowercase ( $property = 'fullcode' )
isNotMixedcase ( $property = 'fullcode' )
isNotUppercase ( $property = 'fullcode' )
isUppercase ( $property = 'fullcode' )
listAllThemes ( $theme = null )
listAnalyzers ( )
makeBaseName ( $className )
makeFullNsPath ( $functions )
nextSibling ( $link = 'ELEMENT' )
nextSiblings ( $link = 'ELEMENT' )
noAtomInside ( $atom )
noChildWithRank ( $edgeName, $rank = '0' )
noClassDefinition ( )
noDelimiterIs ( $code, $caseSensitive = false )
noDelimiterIsNot ( $code, $caseSensitive = false )
noInterfaceDefinition ( )
noTraitDefinition ( )
notSamePropertyAs ( $property, $name, $caseSensitive = false )
outIsNot ( $edgeName )
outWithRank ( $link = 'ARGUMENT', $rank )
outWithoutLastRank ( )
prepareQuery ( )
previousSibling ( $link = 'ELEMENT' )
previousSiblings ( $link = 'ELEMENT' )
printQuery ( )
query ( $queryString, $arguments = null )
raw ( $query )
rawQuery ( )
regexIs ( $column, $regex )
regexIsNot ( $column, $regex )
run ( )
samePropertyAs ( $property, $name, $caseSensitive = false )
saveArglistAs ( $name )
savePropertyAs ( $property, $name )
tokenIs ( $atom )
tokenIsNot ( $atom )
trim ( $property, $chars = ''\"' )

Protected Methods

Method Description
SorA ( $v )
goToInstruction ( $atom = 'Namespace' )
hasInstruction ( $atom = 'Function' )
hasNoInstruction ( $atom = 'Function' )
inIsIE ( $edgeName ) follows a link if it is there (and do nothing otherwise)
loadIni ( $file, $index = null )
loadJson ( $file )
outIs ( $edgeName )
outIsIE ( $edgeName ) follows a link if it is there (and do nothing otherwise)

Private Methods

Method Description
addMethod ( $method, $arguments = null )
hasNoNamedInstruction ( $atom = 'Function', $name = null )
initNewQuery ( )
propertyIs ( $property, $code, $caseSensitive = false )
propertyIsNot ( $property, $code, $caseSensitive = false )
tolowercase ( &$code )

Method Details

SorA() protected method

protected SorA ( $v )

__construct() public method

public __construct ( $gremlin )

__destruct() public method

public __destruct ( )

_as() public method

public _as ( $name )

analyze() abstract public method

abstract public analyze ( )

analyzerIs() public method

public analyzerIs ( $analyzer )

analyzerIsNot() public method

public analyzerIsNot ( $analyzer )

atomFunctionIs() public method

public atomFunctionIs ( $atom )

atomInside() public method

public atomInside ( $atom )

atomIs() public method

public atomIs ( $atom )

atomIsNot() public method

public atomIsNot ( $atom )

back() public method

public back ( $name )

checkPhpVersion() public method

public checkPhpVersion ( $version )

checkphpConfiguration() public method

public checkphpConfiguration ( $Php )

classDefinition() public method

public classDefinition ( )

cleanAnalyzerName() public method

public cleanAnalyzerName ( $gremlin )

codeIs() public method

public codeIs ( $code, $caseSensitive = false )

codeIsNot() public method

public codeIsNot ( $code, $caseSensitive = false )

codeIsPositiveInteger() public method

codeLength() public method

public codeLength ( $length = ' == 1 ' )

debugQuery() public method

public debugQuery ( )

dependsOn() public method

@doc by default, nothing.
public dependsOn ( )

eachCounted() public method

public eachCounted ( $variable, $times, $comp = '==' )

execQuery() public method

public execQuery ( )

fetchContext() public method

public fetchContext ( $context = self::CONTEXT_OUTSIDE_CLOSURE )

filter() public method

public filter ( $filter, $arguments = null )

fullcodeIs() public method

public fullcodeIs ( $code, $caseSensitive = false )

fullcodeIsNot() public method

public fullcodeIsNot ( $code, $caseSensitive = false )

fullcodeLength() public method

public fullcodeLength ( $length = ' == 1 ' )

fullnspathIs() public method

public fullnspathIs ( $code )

fullnspathIsNot() public method

public fullnspathIsNot ( $code )

functionDefinition() public method

public functionDefinition ( )

functioncallIs() public method

public functioncallIs ( $fullnspath )

getAnalyzers() public static method

public static getAnalyzers ( $theme )

getAppinfoHeader() public method

public getAppinfoHeader ( $lang = 'en' )

getClass() public static method

public static getClass ( $name )

getDescription() public method

public getDescription ( )

getDump() public method

public getDump ( )

getInBaseName() public method

public getInBaseName ( )

getInstance() public static method

public static getInstance ( $name )

getName() public static method

public static getName ( $classname )

getPhpversion() public method

public getPhpversion ( )

getProcessedCount() public method

public getProcessedCount ( )

getQueryCount() public method

public getQueryCount ( )

getRawQueryCount() public method

public getRawQueryCount ( )

getRowCount() public method

public getRowCount ( )

getSeverity() public method

public getSeverity ( )

getSuggestionClass() public static method

public static getSuggestionClass ( $name )

getSuggestionThema() public static method

public static getSuggestionThema ( $thema )

getThemeAnalyzers() public static method

public static getThemeAnalyzers ( $theme = null )

getThemes() public method

public getThemes ( )

getTimeToFix() public method

public getTimeToFix ( )

getphpConfiguration() public method

public getphpConfiguration ( )

goToAllChildren() public method

public goToAllChildren ( $self = self::INCLUDE_SELF )

goToAllParents() public method

public goToAllParents ( $self = self::INCLUDE_SELF )

goToAllTraits() public method

public goToAllTraits ( $self = self::INCLUDE_SELF )

goToArray() public method

public goToArray ( )

goToClass() public method

public goToClass ( )

goToClassInterface() public method

public goToClassInterface ( )

goToClassInterfaceTrait() public method

goToClassTrait() public method

public goToClassTrait ( )

goToCurrentScope() public method

public goToCurrentScope ( )

goToExtends() public method

public goToExtends ( )

goToFile() public method

public goToFile ( )

goToFunction() public method

public goToFunction ( )

goToImplements() public method

public goToImplements ( )

goToInstruction() protected method

protected goToInstruction ( $atom = 'Namespace' )

goToInterface() public method

public goToInterface ( )

goToLoop() public method

public goToLoop ( )

goToNamespace() public method

public goToNamespace ( )

goToParent() public method

public goToParent ( )

goToTrait() public method

public goToTrait ( )

goToTraits() public method

public goToTraits ( )

groupCount() public method

public groupCount ( $column )

groupFilter() public method

public groupFilter ( $characteristic, $percentage )

hasChildren() public method

public hasChildren ( $childrenClass, $outs = [] )

hasClass() public method

public hasClass ( )

hasClassDefinition() public method

public hasClassDefinition ( )

hasClassInterface() public method

public hasClassInterface ( )

hasClassTrait() public method

public hasClassTrait ( )

hasConstantDefinition() public method

hasFunction() public method

public hasFunction ( )

hasFunctionDefinition() public method

hasIfthen() public method

public hasIfthen ( )

hasIn() public method

public hasIn ( $edgeName )

hasInstruction() protected method

protected hasInstruction ( $atom = 'Function' )

hasInterface() public method

public hasInterface ( )

hasInterfaceDefinition() public method

hasLoop() public method

public hasLoop ( )

hasName() public method

public hasName ( )

hasNoCatch() public method

public hasNoCatch ( )

hasNoCatchBlock() public method

public hasNoCatchBlock ( )

hasNoChildren() public method

public hasNoChildren ( $childrenClass, $outs = [] )

hasNoClass() public method

public hasNoClass ( )

hasNoClassInterface() public method

public hasNoClassInterface ( )

hasNoClassInterfaceTrait() public method

hasNoClassTrait() public method

public hasNoClassTrait ( )

hasNoComparison() public method

public hasNoComparison ( )

hasNoConstantDefinition() public method

hasNoFunction() public method

public hasNoFunction ( )

hasNoFunctionDefinition() public method

hasNoIfthen() public method

public hasNoIfthen ( )

hasNoIn() public method

public hasNoIn ( $edgeName )

hasNoInstruction() protected method

protected hasNoInstruction ( $atom = 'Function' )

hasNoInterface() public method

public hasNoInterface ( )

hasNoNamedFunction() public method

public hasNoNamedFunction ( $name )

hasNoOut() public method

public hasNoOut ( $edgeName )

hasNoParent() public method

public hasNoParent ( $parentClass, $ins = [] )

hasNoTrait() public method

public hasNoTrait ( )

hasNoTryCatch() public method

public hasNoTryCatch ( )

hasOut() public method

public hasOut ( $edgeName )

hasParent() public method

public hasParent ( $parentClass, $ins = [] )

hasResults() public method

public hasResults ( )

hasTrait() public method

public hasTrait ( )

hasTraitDefinition() public method

public hasTraitDefinition ( )

hasTryCatch() public method

public hasTryCatch ( )

ignore() public method

public ignore ( )

inIs() public method

public inIs ( $edgeName )

inIsIE() protected method

follows a link if it is there (and do nothing otherwise)
protected inIsIE ( $edgeName )

inIsNot() public method

public inIsNot ( $edgeName )

init() public method

public init ( )

initDocs() public static method

public static initDocs ( )

interfaceDefinition() public method

public interfaceDefinition ( )

is() public method

public is ( $property, $value = true )

isInCatchBlock() public method

public isInCatchBlock ( )

isLambda() public method

public isLambda ( )

isLess() public method

public isLess ( $property, $value )

isLiteral() public method

public isLiteral ( )

isLocalClass() public method

public isLocalClass ( )

isLowercase() public method

public isLowercase ( $property = 'fullcode' )

isMore() public method

public isMore ( $property, $value )

isNot() public method

public isNot ( $property, $value = true )

isNotLambda() public method

public isNotLambda ( )

isNotLocalClass() public method

public isNotLocalClass ( )

isNotLowercase() public method

public isNotLowercase ( $property = 'fullcode' )

isNotMixedcase() public method

public isNotMixedcase ( $property = 'fullcode' )

isNotUppercase() public method

public isNotUppercase ( $property = 'fullcode' )

isUppercase() public method

public isUppercase ( $property = 'fullcode' )

listAllThemes() public static method

public static listAllThemes ( $theme = null )

listAnalyzers() public static method

public static listAnalyzers ( )

loadIni() protected method

protected loadIni ( $file, $index = null )

loadJson() protected method

protected loadJson ( $file )

makeBaseName() public static method

public static makeBaseName ( $className )

makeFullNsPath() public method

public makeFullNsPath ( $functions )

nextSibling() public method

public nextSibling ( $link = 'ELEMENT' )

nextSiblings() public method

public nextSiblings ( $link = 'ELEMENT' )

noAtomInside() public method

public noAtomInside ( $atom )

noChildWithRank() public method

public noChildWithRank ( $edgeName, $rank = '0' )

noClassDefinition() public method

public noClassDefinition ( )

noDelimiterIs() public method

public noDelimiterIs ( $code, $caseSensitive = false )

noDelimiterIsNot() public method

public noDelimiterIsNot ( $code, $caseSensitive = false )

noInterfaceDefinition() public method

noTraitDefinition() public method

public noTraitDefinition ( )

notSamePropertyAs() public method

public notSamePropertyAs ( $property, $name, $caseSensitive = false )

outIs() protected method

protected outIs ( $edgeName )

outIsIE() protected method

follows a link if it is there (and do nothing otherwise)
protected outIsIE ( $edgeName )

outIsNot() public method

public outIsNot ( $edgeName )

outWithRank() public method

public outWithRank ( $link = 'ARGUMENT', $rank )

outWithoutLastRank() public method

public outWithoutLastRank ( )

prepareQuery() public method

public prepareQuery ( )

previousSibling() public method

public previousSibling ( $link = 'ELEMENT' )

previousSiblings() public method

public previousSiblings ( $link = 'ELEMENT' )

printQuery() public method

public printQuery ( )

query() public method

public query ( $queryString, $arguments = null )

raw() public method

public raw ( $query )

rawQuery() public method

public rawQuery ( )

regexIs() public method

public regexIs ( $column, $regex )

regexIsNot() public method

public regexIsNot ( $column, $regex )

run() public method

public run ( )

samePropertyAs() public method

public samePropertyAs ( $property, $name, $caseSensitive = false )

saveArglistAs() public method

public saveArglistAs ( $name )

savePropertyAs() public method

public savePropertyAs ( $property, $name )

tokenIs() public method

public tokenIs ( $atom )

tokenIsNot() public method

public tokenIsNot ( $atom )

trim() public method

public trim ( $property, $chars = ''\"' )

Property Details

$CONTAINERS public static property

public static $CONTAINERS

$LITERALS public static property

public static $LITERALS

$analyzerQuoted protected property

Current class of the analyzer (called from below)
protected $analyzerQuoted

$analyzers public static property

public static $analyzers

$code protected property

protected $code

$config protected property

protected $config

$datastore public static property

public static $datastore

$description protected property

protected $description

$docs public static property

public static $docs

$gremlin protected property

protected $gremlin

$gremlinStatic public static property

public static $gremlinStatic

$linksDown protected property

protected $linksDown

$phpConfiguration protected property

protected $phpConfiguration

$phpVersion protected property

protected $phpVersion

$processedCount protected property

Number of found values
protected $processedCount

$queryCount protected property

Number of initial values
protected $queryCount

$rawQueryCount protected property

Number of ran queries
protected $rawQueryCount

$rowCount protected property

protected $rowCount

$severity protected property

protected $severity

$timeToFix protected property

protected $timeToFix