YetiForceCompany/YetiForcePDF

View on GitHub
lib/Layout/BarcodeBox.php

Summary

Maintainability
A
0 mins
Test Coverage

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

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

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

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

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

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

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

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

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

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

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

    protected $code = '';
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        $image = 'data:image/png;base64,' . $barcode->getBarcodePNG($this->getCode(), $this->getType(), (int) $this->getSize(), (int) $this->getHeight());
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

Line exceeds 120 characters; contains 154 characters
Open

        $image = 'data:image/png;base64,' . $barcode->getBarcodePNG($this->getCode(), $this->getType(), (int) $this->getSize(), (int) $this->getHeight());
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    protected $size = '3';
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

     * Set barcode type.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

     * Get barcode height.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

     * Set code.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

    public function setSize(string $size)
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * Set barcode height.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * Set barcode size.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

    protected $type = 'EAN13';
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

    public function setType(string $type)
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * Get code.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

     * Generate barcode image.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

     * Get barcode type.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

     * Get barcode size.
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public function setHeight(string $height)
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

        $barcode = new DNS1D();
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        $barcode->setStorPath(__DIR__ . '/cache/');
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

    protected $height = '33';
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

    public function setCode(string $code)
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

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

        $this->getStyle()->setContent("background-image: url($image)");
Severity: Minor
Found in lib/Layout/BarcodeBox.php by phpcodesniffer

There are no issues that match your filters.

Category
Status