YetiForceCompany/YetiForcePDF

View on GitHub
lib/Objects/Meta.php

Summary

Maintainability
A
35 mins
Test Coverage

Function render has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    public function render(): string
    {
        if ($this->title) {
            $this->addValue('Title', $this->document->filterText($this->title, 'UTF-16', true, true));
        }
Severity: Minor
Found in lib/Objects/Meta.php - About 35 mins 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

Define a constant instead of duplicating this literal "UTF-16" 6 times.
Open

            $this->addValue('Title', $this->document->filterText($this->title, 'UTF-16', true, true));
Severity: Critical
Found in lib/Objects/Meta.php by sonar-php

Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.

On the other hand, constants can be referenced from many places, but only need to be updated in a single place.

Noncompliant Code Example

With the default threshold of 3:

function run() {
  prepare('action1');                              // Non-Compliant - 'action1' is duplicated 3 times
  execute('action1');
  release('action1');
}

Compliant Solution

ACTION_1 = 'action1';

function run() {
  prepare(ACTION_1);
  execute(ACTION_1);
  release(ACTION_1);
}

Exceptions

To prevent generating some false-positives, literals having less than 5 characters are excluded.

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

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

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

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

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

    protected $author = 'YetiForce';
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * @param string $author
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

    protected $producer = 'YetiForcePDF';
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

     * Get author.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

    public function setTitle(string $title)
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

        return $this->keywords;
Severity: Minor
Found in lib/Objects/Meta.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/Meta.php by phpcodesniffer

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

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

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

        if (!empty($this->keywords) && '' !== trim(implode('', $this->keywords))) {
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

            $this->addValue('Keywords', $this->document->filterText(implode(', ', $this->keywords), 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

     * @param string $producer
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

    public function setSubject(string $subject)
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

     * Get subject.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

        unset($keyword);
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * Set author.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

    public function setAuthor(string $author)
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

     * Get creator.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    protected $creator = 'YetiForceCRM';
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * @param string $title
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

     * Set keywords.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

            $this->addValue('Creator', $this->document->filterText($this->creator, 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * Get keywords.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * Get producer.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

     * Get title.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

        foreach ($keywords as &$keyword) {
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * Set title.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

     * Set producer.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

     * Set subject.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

     * @param string[] $keywords
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

            $this->addValue('Author', $this->document->filterText($this->author, 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

     * Set creator.
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

    public function setCreator(string $creator)
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

    public function setProducer(string $producer)
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

     * @param string $creator
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

    public function setKeywords(array $keywords)
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

            $this->addValue('Subject', $this->document->filterText($this->subject, 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

Line exceeds 120 characters; contains 123 characters
Open

            $this->addValue('Keywords', $this->document->filterText(implode(', ', $this->keywords), 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            $this->addValue('Title', $this->document->filterText($this->title, 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

        return parent::render();
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

     * @param string $subject
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

            $keyword = trim($keyword);
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

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

            $this->addValue('Producer', $this->document->filterText($this->producer, 'UTF-16', true, true));
Severity: Minor
Found in lib/Objects/Meta.php by phpcodesniffer

There are no issues that match your filters.

Category
Status