YetiForceCompany/YetiForcePDF

View on GitHub
lib/Layout/TableColumnBox.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '188', column '17').
Open

        $style = (new \YetiForcePDF\Style\Style())
Severity: Minor
Found in lib/Layout/TableColumnBox.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

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

Avoid unused parameters such as '$element'.
Open

    public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$style'.
Open

    public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$element'.
Open

    public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$parentBlock'.
Open

    public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$childDomElement'.
Open

    public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$parentBlock'.
Open

    public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$childDomElement'.
Open

    public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$style'.
Open

    public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$childDomElement'.
Open

    public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$parentBlock'.
Open

    public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$parentBlock'.
Open

    public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$childDomElement'.
Open

    public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$element'.
Open

    public function appendInlineBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$style'.
Open

    public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$style'.
Open

    public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

Avoid unused parameters such as '$element'.
Open

    public function appendBlockBox($childDomElement, $element, $style, $parentBlock)
Severity: Minor
Found in lib/Layout/TableColumnBox.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

        return $this;

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

        return $this->colSpanned;

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

        $box->getStyle()->init();

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

     */

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

     * @param int $rowSpan

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

     * @return int

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->rowSpanUp;

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->colSpan;

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

     */

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

     * @param mixed $element

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

    public function appendInlineBox($childDomElement, $element, $style, $parentBlock)

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

     * @var int row span

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

     * Set row span.

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

    public function setColSpanned(int $spanned)

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

        $this->colSpanned = $spanned;

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

    public function appendTableWrapperBox($childDomElement, $element, $style, $parentBlock)

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

     * We shouldn't append inline box here.

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

     * @throws \InvalidArgumentException

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

    {

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

        $style = (new \YetiForcePDF\Style\Style())

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

     * {@inheritdoc}

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

    {

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

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

     * @param mixed $style

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

    /**

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

    protected $colSpan = 1;

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

    protected $rowSpan = 1;

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

        $this->rowSpan = $rowSpan;

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

    }

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

     * Get column span.

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

    public function getColSpan()

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

     *

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

     * Is this column spanned with previous?

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

     * @param mixed $style

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

    /**

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

            ->init();

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

    public function getInstructions(): string

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

     *

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

     * @return $this

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

    }

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

     * Set spanned.

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

     * @param int $spanned - spanned columns before

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

     *

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

     * @param mixed $childDomElement

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

     * @param mixed $childDomElement

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

     *

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

            ->setStyle($style)

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

    }

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

     * @var int

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

    public function setRowSpanUp(int $rowSpanUp)

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

     * Get row span up.

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

     * Get row span.

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

    public function getRowSpanUp()

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

     * Set row span up.

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 int

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

     * @param mixed $parentBlock

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

        $this->colSpan = $colSpan;

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

     * @param mixed $parentBlock

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

        return $this;

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

     * @param mixed $parentBlock

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

    /**

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

     * We shouldn't append block box here.

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

            ->setContent('')

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

        return ''; // not renderable

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

     */

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

     * @param int $rowSpan

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

     * @param int $rowSpanUp

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

    public function setColSpan(int $colSpan)

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

     * We shouldn't append table wrapper here.

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

     * Create cell 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

            ->setParent($this)

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

    protected $colSpanned = 0;

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

     */

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

    public function getRowSpan()

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

        return $this->rowSpan;

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

     * @return $this

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

     * @return int

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

     * Set column span.

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

     * @param mixed $parentBlock

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

     * @param mixed $element

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

     * @param mixed $style

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

    }

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

     * @var int

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

    /**

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

        $this->rowSpanUp = $rowSpanUp;

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

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

     * @return int

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

    public function getColSpanned()

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;

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

     * @param mixed $element

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

     * @param mixed $element

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

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

    public function createCellBox()

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

            ->setDocument($this->document)

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

     * @param int $colSpan

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

     *

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

     * @param mixed $childDomElement

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

     * @param mixed $childDomElement

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

        return $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

     */

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;

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

     *

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

     * We shouldn't append inline block box here.

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

     * @param mixed $style

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

     *

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

        $this->appendChild($box);

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

     * @var int

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

    public function setRowSpan(int $rowSpan)

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

     */

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

    public function appendBlockBox($childDomElement, $element, $style, $parentBlock)

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

    {

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

            ->parseInline();

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

        $box = (new TableCellBox())

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

            ->setDocument($this->document)

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

    /**

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

    protected $rowSpanUp = 0;

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

    /**

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

    }

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

    {

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

    public function appendInlineBlockBox($childDomElement, $element, $style, $parentBlock)

There are no issues that match your filters.

Category
Status