class NoMissingTranslationsRule implements Rule

Upstream compares each key with the keys in the lang files. This rule asks the booted translator, so fallbacks, JSON, namespaces and boot-added lines count, and reports only keys whose group exists.

Traits

Properties

protected Container|null $container from  HasContainer

Methods

void
setContainer(Container $container)

Set the container used for resolution.

getContainer()

Return the current container.

mixed
resolve(string $abstract)

Resolve the given type from the container.

__construct(UsedTranslationViewCollector $usedTranslationViewCollector, ViewFileHelper $viewFileHelper, Filesystem $filesystem, RuntimeInputs $runtimeInputs, array $translationDirectories)

Create a new rule instance.

string
getNodeType()

Get the node type the rule inspects.

array
processNode(Node $node, Scope $scope)

Report collected translation lookups the translator cannot resolve.

Details

in HasContainer at line 19
void setContainer(Container $container)

Set the container used for resolution.

Parameters

Container $container

Return Value

void

in HasContainer at line 27
Container getContainer()

Return the current container.

Return Value

Container

in HasContainer at line 35
mixed resolve(string $abstract)

Resolve the given type from the container.

Parameters

string $abstract

Return Value

mixed

at line 56
__construct(UsedTranslationViewCollector $usedTranslationViewCollector, ViewFileHelper $viewFileHelper, Filesystem $filesystem, RuntimeInputs $runtimeInputs, array $translationDirectories)

Create a new rule instance.

Parameters

UsedTranslationViewCollector $usedTranslationViewCollector
ViewFileHelper $viewFileHelper
Filesystem $filesystem
RuntimeInputs $runtimeInputs
array $translationDirectories

directories that replace the application's translation sources

at line 69
string getNodeType()

Get the node type the rule inspects.

Return Value

string

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

Report collected translation lookups the translator cannot resolve.

Parameters

Node $node
Scope $scope

Return Value

array