YetiForceCompany/YetiForceCRM

View on GitHub
app/TextParser/UserVariable.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Call to method getUserVariables from undeclared class \App\TextParser (Did you mean class \Tests\App\TextParser)
Open

        $data = $this->textParser->getUserVariables($this->params, false);
Severity: Critical
Found in app/TextParser/UserVariable.php by phan

Call to method getParam from undeclared class \App\TextParser (Did you mean class \Tests\App\TextParser)
Open

        return $this->textParser->getParam($key) ?? ($data[$key]['default'] ?? '');
Severity: Critical
Found in app/TextParser/UserVariable.php by phan

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

    /** @var string Parser type */

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

        return $this->textParser->getParam($key) ?? ($data[$key]['default'] ?? '');

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

    /** @var string */

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

    public $name = 'LBL_TEXT_PARSER_USER_VARIABLE';

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

    {

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

     *

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

        $data = $this->textParser->getUserVariables($this->params, false);

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

        $key = (string) key($data);

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

    public $type = 'pdf';

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

     * Process.

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

    /** @var string Default template */

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

    public $default = '$(userVariable : name=__FIELD_NAME__|label=__LABEL__|default=__DEFAULT_VALUE__)$';

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

     * @return string

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

     */

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

    /**

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

    public function process()

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

    }

There are no issues that match your filters.

Category
Status