AppStateESS/InternshipInventory

View on GitHub
class/FacultySupervisor.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method __construct from undeclared class \Intern\PHPWS_DB
Open

        return new PHPWS_DB('intern_faculty_supervisor');
Severity: Critical
Found in class/FacultySupervisor.php by phan

Saw an @override annotation for method \Intern\FacultySupervisor::getDb, but could not find an overridden method and it is not a magic method
Open

    public function getDb()
Severity: Info
Found in class/FacultySupervisor.php by phan

The property $faculty_last_name is not named in camelCase.
Open

class FacultySupervisor extends Model
{
    public $first_name;
    public $last_name;
    public $phone;
Severity: Minor
Found in class/FacultySupervisor.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $first_name is not named in camelCase.
Open

class FacultySupervisor extends Model
{
    public $first_name;
    public $last_name;
    public $phone;
Severity: Minor
Found in class/FacultySupervisor.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $department_id is not named in camelCase.
Open

class FacultySupervisor extends Model
{
    public $first_name;
    public $last_name;
    public $phone;
Severity: Minor
Found in class/FacultySupervisor.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

The property $last_name is not named in camelCase.
Open

class FacultySupervisor extends Model
{
    public $first_name;
    public $last_name;
    public $phone;
Severity: Minor
Found in class/FacultySupervisor.php by phpmd

CamelCasePropertyName

Since: 0.2

It is considered best practice to use the camelCase notation to name attributes.

Example

class ClassName {
    protected $property_name;
}

Source

There are no issues that match your filters.

Category
Status