YetiForceCompany/YetiForcePDF

View on GitHub
lib/Layout/TextBox.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getInstructions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getInstructions(): string
    {
        $style = $this->getStyle();
        $rules = $style->getRules();
        $graphicState = $this->style->getGraphicState();
Severity: Minor
Found in lib/Layout/TextBox.php - About 1 hr to fix

    Missing class import via use statement (line '38', column '23').
    Open

            $this->style = (new \YetiForcePDF\Style\Style())
    Severity: Minor
    Found in lib/Layout/TextBox.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 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/TextBox.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 'getInstructions'.
    Open

            $baseLineY = Math::sub($pdfY, $baseLine);
    Severity: Minor
    Found in lib/Layout/TextBox.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/TextBox.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

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

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

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

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

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

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

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

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

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

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

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

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

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

         * Get element PDF instructions to use in content stream.
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

            $rules = $style->getRules();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                $graphicStateStr,
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                $transform,
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                'BT',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                    'q',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

         * {@inheritdoc}
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

            $this->getDimensions()->setHeight($this->getStyle()->getFont()->getTextHeight($this->getText()));
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

         * Position.
    Severity: Minor
    Found in lib/Layout/TextBox.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/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

            $baseLineY = Math::sub($pdfY, $baseLine);
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                $element = array_merge($element, [
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

            $graphicState = $this->style->getGraphicState();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $graphicStateStr = '/' . $graphicState->getNumber() . ' gs';
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $font = $style->getFont();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                    "0 0 $textWidth $textHeight re",
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                    'Q',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            return implode("\n", $element);
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

         * Set text.
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

            $pdfX = $coordinates->getPdfX();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $textHeight = $style->getFont()->getTextHeight();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                'q',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

        protected string $text;
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

         * Get text.
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

        public function measureHeight(): self
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

            $this->offset = clone $this->offset;
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                'ET',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    "1 0 0 1 $pdfX $pdfY cm",
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

        public function measurePosition(): self
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $this->style = clone $this->style;
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $this->dimensions = clone $this->dimensions;
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $coordinates = $this->getCoordinates();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                ->setBox($this)
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

         */
    Severity: Minor
    Found in lib/Layout/TextBox.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/TextBox.php by phpcodesniffer

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

            $this->coordinates = clone $this->coordinates;
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

            $this->getDimensions()->setWidth($this->getStyle()->getFont()->getTextWidth($this->getText()));
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

            $baseLine = $style->getFont()->getDescender();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $element = [
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

        public function getText(): string
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

            $style = $this->getStyle();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $pdfY = $coordinates->getPdfY();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $transform = $style->getTransformations($pdfX, $baseLineY);
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                    '1 w',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                    '1 0 0 RG',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

            parent::init();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

        public function measureWidth(): self
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

            $fontStr = '/' . $font->getNumber() . ' ' . $font->getSize() . ' Tf';
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $textContent = $this->document->filterText($this->getText());
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                'Q',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

                ->init();
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

        public function setText(string $text): self
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

            if ($this->drawTextOutline) {
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

        public bool $drawTextOutline = false;
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

            $this->style = (new \YetiForcePDF\Style\Style())
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

            $textWidth = $style->getFont()->getTextWidth($this->getText());
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

        public function measureOffset(): self
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

        public function getInstructions(): string
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                "{$rules['color'][0]} {$rules['color'][1]} {$rules['color'][2]} rg",
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                $fontStr,
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                ->setDocument($this->document)
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

                "$textContent Tj",
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

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

                    'S',
    Severity: Minor
    Found in lib/Layout/TextBox.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status