YetiForceCompany/YetiForcePDF

View on GitHub
lib/Style/Normalizer/BoxSizing.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$ruleName'.
Open

    public function normalize($ruleValue, string $ruleName = ''): array
Severity: Minor
Found in lib/Style/Normalizer/BoxSizing.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Spaces must be used to indent lines; tabs are not allowed
Open

        if (null !== $this->normalized) {

Spaces must be used to indent lines; tabs are not allowed
Open

            $normalized = ['box-sizing' => $ruleValue];

Spaces must be used to indent lines; tabs are not allowed
Open

    public function normalize($ruleValue, string $ruleName = ''): array

Spaces must be used to indent lines; tabs are not allowed
Open

        $normalized = ['box-sizing' => 'border-box'];

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

            return $this->normalized;

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->normalized = $normalized;

Spaces must be used to indent lines; tabs are not allowed
Open

        if (\in_array($ruleValue, ['border-box', 'content-box'])) {

Spaces must be used to indent lines; tabs are not allowed
Open

        }

There are no issues that match your filters.

Category
Status