YetiForceCompany/YetiForceCRM

View on GitHub
app/TextParser/Base.php

Summary

Maintainability
A
0 mins
Test Coverage
C
77%

Property \App\TextParser\Base->textParser has undeclared type \App\TextParser (Did you mean class \Tests\App\TextParser)
Open

    public $textParser;
Severity: Minor
Found in app/TextParser/Base.php by phan

Reference to instance property type from undeclared class \App\TextParser
Open

        if (isset($this->textParser->type) && $this->textParser->type !== $this->type) {
Severity: Minor
Found in app/TextParser/Base.php by phan

Parameter $textParser has undeclared type \App\TextParser (Did you mean class \Tests\App\TextParser)
Open

    public function __construct(\App\TextParser $textParser, $params = '')
Severity: Minor
Found in app/TextParser/Base.php by phan

Reference to instance property moduleName from undeclared class \App\TextParser
Open

        if (isset($this->textParser->moduleName, $this->allowedModules) && !\in_array($this->textParser->moduleName, $this->allowedModules)) {
Severity: Minor
Found in app/TextParser/Base.php by phan

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

    /** @var string Class name */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    /** @var mixed Additional params */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public $type;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    /** @var \App\TextParser TextParser instance */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public $params;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

            return false;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     * Check if function is activated.
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

            return false;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        return true;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public $textParser;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     * @param mixed           $params
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        $this->textParser = $textParser;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

Line exceeds 120 characters; contains 142 characters
Open

        if (isset($this->textParser->moduleName, $this->allowedModules) && !\in_array($this->textParser->moduleName, $this->allowedModules)) {
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    /** @var array Allowed modules */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     * Construct.
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     * @param \App\TextParser $textParser
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public function __construct(\App\TextParser $textParser, $params = '')
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    }
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     *
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        if (isset($this->textParser->moduleName, $this->allowedModules) && !\in_array($this->textParser->moduleName, $this->allowedModules)) {
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public $name = '';
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    /**
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        }
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        $this->params = $params;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     * @return bool
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public $allowedModules;
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    /** @var mixed Parser type */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    public function isActive()
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

        if (isset($this->textParser->type) && $this->textParser->type !== $this->type) {
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

     */
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

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

    {
Severity: Minor
Found in app/TextParser/Base.php by phpcodesniffer

There are no issues that match your filters.

Category
Status