class UnusedViewsRule implements Rule

Methods

__construct(UsedViewInAnotherViewCollector $usedViewInAnotherViewCollector, ViewFileHelper $viewFileHelper)

Create a new rule instance.

string
getNodeType()

Get the node type the rule inspects.

array
processNode(Node $node, Scope $scope)

Report views without a statically discovered usage.

Details

at line 43
__construct(UsedViewInAnotherViewCollector $usedViewInAnotherViewCollector, ViewFileHelper $viewFileHelper)

Create a new rule instance.

Parameters

UsedViewInAnotherViewCollector $usedViewInAnotherViewCollector
ViewFileHelper $viewFileHelper

at line 50
string getNodeType()

Get the node type the rule inspects.

Return Value

string

at line 61
array processNode(Node $node, Scope $scope)

Report views without a statically discovered usage.

Parameters

Node $node
Scope $scope

Return Value

array