YetiForceCompany/YetiForcePDF

View on GitHub
lib/Objects/PdfObject.php

Summary

Maintainability
A
1 hr
Test Coverage

Function addChild has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

    public function addChild(self $child, self $after = null): self
    {
        $afterIndex = \count($this->children);
        if ($after) {
            foreach ($this->children as $afterIndex => $childObject) {
Severity: Minor
Found in lib/Objects/PdfObject.php - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Missing class import via use statement (line '190', column '13').
Open

        throw new \InvalidArgumentException("Object of basic type '{$this->basicType}' cannot have a child.");
Severity: Minor
Found in lib/Objects/PdfObject.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

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

    public function setAddToDocument(bool $addToDocument = true)
Severity: Minor
Found in lib/Objects/PdfObject.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 getChildren has a boolean flag argument $all, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getChildren(bool $all = false, array &$current = []): array
Severity: Minor
Found in lib/Objects/PdfObject.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 variables with short names like $id. Configured minimum length is 3.
Open

    protected $id = 1;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

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

Avoid variables with short names like $id. Configured minimum length is 3.
Open

    public function setId($id)
Severity: Minor
Found in lib/Objects/PdfObject.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

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

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

     * Basic object type (integer, string, boolean, dictionary etc..).
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $basicType = '';
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        $this->id = $id;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return int
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function addChild(self $child, self $after = null): self
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        if (\in_array($this->getBasicType(), ['Dictionary', 'Array'])) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Object name.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param bool $addToDocument
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function setId($id)
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getChildren(bool $all = false, array &$current = []): array
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        if ($after) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var array
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function setAddToDocument(bool $addToDocument = true)
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param $id
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->id;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getRawId(): string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->basicType;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

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

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->children;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $parent;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            $this->document->addObject($this);
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getId(): int
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            $child->setParent($this);
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function init()
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

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

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

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

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get raw id (that will exists in pdf file).
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getBasicType(): string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

                $current[] = $child;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @throws \InvalidArgumentException
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            $merge = array_splice($this->children, $afterIndex);
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $addToDocument = true;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var \YetiForcePDF\Document
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param bool  $all     - do we want all children from tree (flat structure)?
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            foreach ($this->children as $child) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

                }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        $this->addToDocument = $addToDocument;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get object id.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get children elements (pages etc).
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            return $current;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $id = 1;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $document;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

                if ($after === $childObject) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var bool
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Initialisation.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        $afterIndex = \count($this->children);
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            foreach ($this->children as $afterIndex => $childObject) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $children = [];
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getName(): string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->id . ' 0';
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        if ($all) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Add child object.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            return $child;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Add object to document objects?
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var \YetiForcePDF\Objects\PdfObject
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Set id.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get object name.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Id of the current object.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Parent object.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Set addToDocument variable.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param array $current
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param PdfObject $child
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return PdfObject
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    protected $name = 'PdfObject';
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->name;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @var int
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Children elements - referenced.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        if ($this->addToDocument) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get object basic type (integer,string, boolean, dictionary etc..).
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param PdfObject $after - add after this element
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        throw new \InvalidArgumentException("Object of basic type '{$this->basicType}' cannot have a child.");
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get parent.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return mixed
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->getRawId() . ' R';
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

                $child->getChildren(true, $current);
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

                    break;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            ++$afterIndex;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            if (!$after) {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

                return $this->children[] = $child;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            $this->children[] = $child;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

            $this->children = array_merge($this->children, $merge);
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Set parent object.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this->parent;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function setParent(self $parent): self
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Layout current object.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return $this;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        return '';
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getReference(): string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * Get object reference string.
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return \YetiForcePDF\Objects\PdfObject
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

        $this->parent = $parent;
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    {
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     *
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function render(): string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    public function getParent()
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    }
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @param \YetiForcePDF\Objects\PdfObject $parent
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     */
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

    /**
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

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

     * @return string
Severity: Minor
Found in lib/Objects/PdfObject.php by phpcodesniffer

There are no issues that match your filters.

Category
Status