AppStateESS/InternshipInventory

View on GitHub
class/UI/FacultyUI.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using static access to class '\Intern\AssetResolver' in method 'display'.
Open

        $tpl['vendor_bundle'] = AssetResolver::resolveJsPath('assets.json', 'vendor');
Severity: Minor
Found in class/UI/FacultyUI.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 '\PHPWS_Template' in method 'display'.
Open

        return \PHPWS_Template::process($tpl, 'intern', 'editFaculty.tpl');
Severity: Minor
Found in class/UI/FacultyUI.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 '\Intern\AssetResolver' in method 'display'.
Open

        $tpl['entry_bundle'] = AssetResolver::resolveJsPath('assets.json', 'facultyEdit');
Severity: Minor
Found in class/UI/FacultyUI.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

Call to method process from undeclared class \PHPWS_Template
Open

        return \PHPWS_Template::process($tpl, 'intern', 'editFaculty.tpl');
Severity: Critical
Found in class/UI/FacultyUI.php by phan

There are no issues that match your filters.

Category
Status