YetiForceCompany/YetiForcePDF

View on GitHub
lib/Layout/TableCellBox.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function measureWidth(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.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 measureOffset has a boolean flag argument $afterPageDividing, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function measureOffset(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.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 measureHeight has a boolean flag argument $afterPageDividing, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function measureHeight(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.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 measurePosition has a boolean flag argument $afterPageDividing, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function measurePosition(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.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\Math' in method 'measureOffset'.
Open

                $left = Math::add($left, $previous->getOffset()->getLeft(), $previous->getDimensions()->getWidth(), $previous->getStyle()->getRules('margin-right'));
Severity: Minor
Found in lib/Layout/TableCellBox.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 method measureOffset uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

            } else {
                $left = Math::add($left, $parent->getStyle()->getOffsetLeft());
            }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

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

Avoid using static access to class '\YetiForcePDF\Math' in method 'measureOffset'.
Open

                $left = Math::add($left, $parent->getStyle()->getOffsetLeft());
Severity: Minor
Found in lib/Layout/TableCellBox.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 assigning values to variables in if clauses and the like (line '124', column '8').
Open

    public function measureOffset(bool $afterPageDividing = false)
    {
        $parent = $this->getParent();
        $top = $parent->getStyle()->getOffsetTop();
        if (!$afterPageDividing) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpmd

IfStatementAssignment

Since: 2.7.0

Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

Example

class Foo
{
    public function bar($flag)
    {
        if ($foo = 'bar') { // possible typo
            // ...
        }
        if ($baz = 0) { // always false
            // ...
        }
    }
}

Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

The method measurePosition uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $this->getCoordinates()->setY($this->getClosestLineBox()->getCoordinates()->getY());
        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpmd

ElseExpression

Since: 1.4.0

An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

Example

class Foo
{
    public function bar($flag)
    {
        if ($flag) {
            // one branch
        } else {
            // another branch
        }
    }
}

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

Avoid using static access to class '\YetiForcePDF\Math' in method 'measurePosition'.
Open

            $this->getCoordinates()->setX(Math::add($parent->getCoordinates()->getX(), $this->getOffset()->getLeft()));
Severity: Minor
Found in lib/Layout/TableCellBox.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\Math' in method 'measurePosition'.
Open

            $this->getCoordinates()->setY(Math::add($parent->getCoordinates()->getY(), $this->getOffset()->getTop()));
Severity: Minor
Found in lib/Layout/TableCellBox.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 unused parameters such as '$afterPageDividing'.
Open

    public function measureWidth(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Initial borders width - because borders are modified couple of times when rearranging.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        'right' => '0',
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $this->spanned = $spanned;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Position.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

                $left = Math::add($left, $previous->getOffset()->getLeft(), $previous->getDimensions()->getWidth(), $previous->getStyle()->getRules('margin-right'));
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Position.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        ];
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @var bool is column spanned?
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Set column spanned.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function isSpanned()
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $top = $parent->getStyle()->getOffsetTop();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param bool $afterPageDividing
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return $this
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return string width
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this->initialBordersWidths[$which];
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    protected $spanned = false;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Parent width cache.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function measurePosition(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $parent = $this->getParent();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $this->getCoordinates()->setY(Math::add($parent->getCoordinates()->getY(), $this->getOffset()->getTop()));
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        'bottom' => '0',
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $this->getOffset()->setTop($top);
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        if (!$parent instanceof InlineBox) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    ];
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        if ($this->parentWidth === $this->getClosestByType('TableBox')->getDimensions()->getWidth()) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        // do not set up width because it was set higher by TableBox measureWidth method
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            // it only affects line margins
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

                $left = Math::add($left, $parent->getStyle()->getOffsetLeft());
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            'right' => $right,
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            'left' => $left,
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        foreach ($this->getChildren() as $child) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param string $afterPageDividing
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        if (!$afterPageDividing) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $this->getOffset()->setLeft($left);
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function getInitialBordersWidth(string $which)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param string $bottom
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param string $left
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @var array
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        foreach ($this->getChildren() as $child) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return $this
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function measureOffset(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $parent = $this->getParent();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        foreach ($this->getChildren() as $child) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Set initial borders width - because borders are modified couple of times when rearranging.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

Line exceeds 120 characters; contains 165 characters
Open

                $left = Math::add($left, $previous->getOffset()->getLeft(), $previous->getDimensions()->getWidth(), $previous->getStyle()->getRules('margin-right'));
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $child->measureOffset($afterPageDividing);
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function setInitialBordersWidths(string $top, string $right, string $bottom, string $left)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return array
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return bool
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param bool $afterPageDividing
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return $this
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        if (!$afterPageDividing) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return self
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Is column spanned with others?
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $this->parentWidth = $this->getClosestByType('TableBox')->getDimensions()->getWidth();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return $this
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        foreach ($this->getChildren() as $child) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $this->getCoordinates()->setX(Math::add($parent->getCoordinates()->getX(), $this->getOffset()->getLeft()));
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function getInitialBordersWidths()
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            'bottom' => $bottom,
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param bool $spanned
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function setSpanned(bool $spanned)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this->spanned;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param string $right
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            'top' => $top,
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    protected $parentWidth = '0';
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    protected $initialBordersWidths = [
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $child->measureWidth();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param bool $afterPageDividing
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param string $top
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        'top' => '0',
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $this->divideLines();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $child->measureHeight();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            // margin top inside inline and inline block doesn't affect relative to line top position
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            if ($previous = $this->getPrevious()) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            } else {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $child->measurePosition();
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Get initial borders width - because borders are modified couple of times when rearranging.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Get initial border width.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @return $this
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Measure width.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        'left' => '0',
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function measureWidth(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    public function measureHeight(bool $afterPageDividing = false)
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * Measure height.
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        if ($this->wasCut() || $afterPageDividing) {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $left = $this->getStyle()->getRules('margin-left');
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            }
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

            $this->getCoordinates()->setY($this->getClosestLineBox()->getCoordinates()->getY());
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        } else {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        return $this->initialBordersWidths;
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     * @param string $which top, right, bottom, left
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

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

        $this->initialBordersWidths = [
Severity: Minor
Found in lib/Layout/TableCellBox.php by phpcodesniffer

There are no issues that match your filters.

Category
Status