AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

Call to method allow from undeclared class \Current_User
Open

        if(!\Current_User::allow('intern', 'create_internship')){
Severity: Critical
Found in class/Command/ShowAddInternship.php by phan

Call to method simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::WARNING, "We couldn't find a student with an ID of {$studentId} in Banner. This probably means this person is not an active student.");
Severity: Critical
Found in class/Command/ShowInternship.php by phan

Possibly zero references to use statement for classlike/namespace Level (\Intern\Level)
Open

use Intern\Level;

Return type of getStudent() is undeclared type \Intern\DataProvider\Student\Intern\Student (Did you mean class \Intern\Student)
Open

    public abstract function getStudent($studentId);

Call to method __construct from undeclared class \PHPWS_DB
Open

        $db = new \PHPWS_DB($table);
Severity: Critical
Found in class/DatabaseStorage.php by phan

Call to method getAll from undeclared class \PHPWS_DB
Open

        $result = \PHPWS_DB::getAll($query);
Severity: Critical
Found in class/DatabaseStorage.php by phan

Call to method addColumn from undeclared class \PHPWS_DB
Open

        $db->addColumn('id');
Severity: Critical
Found in class/DepartmentFactory.php by phan

Call to method get from undeclared class \PHPWS_Settings
Open

        $affiliationDir = \PHPWS_Settings::get('filecabinet',
Severity: Critical
Found in class/Command/DocumentRest.php by phan

Argument 1 (id) is string|string[] but \Intern\InternshipFactory::getInternshipById() takes int defined at /code/class/InternshipFactory.php:37
Open

        $internship = InternshipFactory::getInternshipById($internshipId);
Severity: Minor
Found in class/Command/EmergencyContactRest.php by phan

Call to method newDB from undeclared class \phpws2\Database
Open

        $db = Database::newDB();
Severity: Critical
Found in class/Command/HostRest.php by phan

Call to method close from undeclared class \NQ
Open

        \NQ::close();
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Call to method close from undeclared class \NQ
Open

            \NQ::close();
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

        $i->pay_rate = self::trimField($_REQUEST['pay_rate']);
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

            $i->host_sub_id = $_REQUEST['sub_host'];
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Call to method isDeity from undeclared class \Current_User
Open

        if (\Current_User::isDeity()) {
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

        $supervisor->supervisor_email = self::trimField($_REQUEST['supervisor_email']);
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

        $supervisor->supervisor_fax = self::trimField($_REQUEST['supervisor_fax']);
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Call to method simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::SUCCESS, 'Saved internship for ' . $i->getFullName());
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Call to method allow from undeclared class \Current_User
Open

        if(!\Current_User::allow('intern', 'affiliation_agreement')){
Severity: Critical
Found in class/Command/SettingsRest.php by phan

Call to method set from undeclared class \PHPWS_Settings
Open

        \PHPWS_Settings::set('intern','registrarEmail',$_REQUEST['registrarEmail']);
Severity: Critical
Found in class/Command/SettingsRest.php by phan
Severity
Category
Status
Source
Language