YetiForceCompany/YetiForcePDF

View on GitHub
lib/Style/NumericValue.php

Summary

Maintainability
A
0 mins
Test Coverage

The method get has a boolean flag argument $isFont, which is a certain sign of a Single Responsibility Principle violation.
Open

    public static function get($value, bool $isFont = false)
Severity: Minor
Found in lib/Style/NumericValue.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

The method init has a boolean flag argument $isFont, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function init(string $value, bool $isFont = false)
Severity: Minor
Found in lib/Style/NumericValue.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Avoid using static access to class '\YetiForcePDF\Style\Normalizer\Normalizer' in method 'init'.
Open

        $this->value = \YetiForcePDF\Style\Normalizer\Normalizer::getNumericValue($value);
Severity: Minor
Found in lib/Style/NumericValue.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\YetiForcePDF\Style\Normalizer\Normalizer' in method 'init'.
Open

        $this->unit = \YetiForcePDF\Style\Normalizer\Normalizer::getNumericUnit($value, 'px');
Severity: Minor
Found in lib/Style/NumericValue.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

Avoid using static access to class '\YetiForcePDF\Style\Normalizer\Normalizer' in method 'get'.
Open

        if (false !== \YetiForcePDF\Style\Normalizer\Normalizer::getNumericValue($value)) {
Severity: Minor
Found in lib/Style/NumericValue.php by phpmd

StaticAccess

Since: 1.4.0

Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

Example

class Foo
{
    public function bar()
    {
        Bar::baz();
    }
}

Source https://phpmd.org/rules/cleancode.html#staticaccess

The 'getIsFont()' method which returns a boolean should be named 'is...()' or 'has...()'
Open

    public function getIsFont(): bool
    {
        return $this->isFont;
    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpmd

BooleanGetMethodName

Since: 0.2

Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

Example

class Foo {
    /**
     * @return boolean
     */
    public function getFoo() {} // bad
    /**
     * @return bool
     */
    public function isFoo(); // ok
    /**
     * @return boolean
     */
    public function getFoo($bar); // ok, unless checkParameterizedMethods=true
}

Source https://phpmd.org/rules/naming.html#booleangetmethodname

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    private $value;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param any|string $value
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Get the value of converted.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Numeric string representation of original value (without unit).
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Unit of original value for '12px' it will be 'px'.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Is this numeric value for font size?
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        if (false !== \YetiForcePDF\Style\Normalizer\Normalizer::getNumericValue($value)) {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

            return $value;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

            return (new self())->init($value, $isFont);
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    private $original;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this->original;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->unit = \YetiForcePDF\Style\Normalizer\Normalizer::getNumericUnit($value, 'px');
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function setOriginal(string $original)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function setValue(string $value)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Set the value of converted.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Initialize numeric value.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->original = $value;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    private $isFont;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Original css value 12px for example.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @var bool
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Get numeric value out of string value or return original if it's not numeric.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    private $converted = '0';
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Get the value of value.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this->value;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function getOriginal(): string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param string $unit
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function getUnit(): string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function getConverted(): string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this->converted;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param string $value  css value 12px for example
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        if (!\is_string($value)) {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param string $converted
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param Style $style
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Converted to pixel value from other unit (from 'em' for example).
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->isFont = $isFont;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->unit = $unit;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param bool   $isFont
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public static function get($value, bool $isFont = false)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $value;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function getValue(): string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Get the value of isFont.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return bool
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param bool $isFont
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    private $unit;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function init(string $value, bool $isFont = false)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->value = \YetiForcePDF\Style\Normalizer\Normalizer::getNumericValue($value);
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this->unit;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function setUnit(string $unit)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this->converted;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->isFont = $isFont;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function __toString()
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function getIsFont(): bool
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param Style      $style
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->original = $original;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->converted = $converted;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return any|NumericValue
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function setConverted(string $converted)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Set the value of isFont.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param string $original
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->value = $value;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Convert unit.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Set the value of value.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param string $value
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Get the value of unit.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function setIsFont(bool $isFont)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Get the value of original.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        $this->converted = $style->convertUnits($this->unit, $this->value, $this->isFont);
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @param bool       $isFont
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this->isFont;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Set the value of original.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * Set the value of unit.
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    public function convert(Style $style)
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Style/NumericValue.php by phpcodesniffer

There are no issues that match your filters.

Category
Status