YetiForceCompany/YetiForceCRM

View on GitHub
vtlib/Vtiger/LinkData.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Avoid using static access to class '\App\Request' in method '__construct'.
Open

        $this->module = \App\Request::_getModule();
Severity: Minor
Found in vtlib/Vtiger/LinkData.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 '\App\Request' in method 'getInputParameter'.
Open

        return \App\Request::_get($name);
Severity: Minor
Found in vtlib/Vtiger/LinkData.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

Return type of getLink() is undeclared type \vtlib\vtlib\Link (Did you mean class \vtlib\Link)
Open

    public function getLink()
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phan

Returning type \vtlib\Link but getLink() is declared to return \vtlib\vtlib\Link
Open

        return $this->link;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phan

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

    }
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    protected $user;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

        return $this->link;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    }
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

        return $this->module;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    {
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    {
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    protected $link;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    public function __construct($link)
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    /**
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

     * @return vtlib\Link
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

        $this->link = $link;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    public function getModule()
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    {
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    protected $module;
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    {
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    }
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    }
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

        $this->module = \App\Request::_getModule();
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

        return \App\Request::_get($name);
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    public function getLink()
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

    public function getInputParameter($name)
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

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

     */
Severity: Minor
Found in vtlib/Vtiger/LinkData.php by phpcodesniffer

There are no issues that match your filters.

Category
Status