AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

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 simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::WARNING, 'You do not have permission to add Affiliation Agreements.');
Severity: Critical
Found in class/Command/SaveAffiliate.php by phan

Invalid offset 0 of array type array{}
Open

                $i->major_code = $majors[0]->getCode();
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

            $supervisor = SupervisorFactory::getSupervisorById($_REQUEST['supervisor_id']);
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Reference to undeclared constant \PHPWS_SOURCE_DIR
Open

        require_once(PHPWS_SOURCE_DIR . 'inc/intern_defines.php');

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

use \Intern\Department;
Severity: Minor
Found in class/Command/ShowAddInternship.php by phan

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

    public function getFacultyMember($facultyId){

Call to method addOrder from undeclared class \PHPWS_DB
Open

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

Call to method setAction from undeclared class \PHPWS_Form
Open

            $this->form->setAction('index.php?module=intern&action=ShowInternship&internship_id=' . $this->intern->getId());
Severity: Critical
Found in class/EditInternshipFormView.php by phan

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

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

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

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

Call to method __construct from undeclared class \Intern\Command\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Open

            throw new InvalidArgumentException('Missing contact name.');
Severity: Critical
Found in class/Command/EmergencyContactRest.php by phan

Call to method simple from undeclared class \NQ
Open

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

Suspicious array access to nullable ?array
Open

            $subInfo = SubHostFactory::getSubById($_REQUEST['sub_host']);
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Call to method getDescription on non-class type null
Open

            $i->major_description = $majors[0]->getDescription();
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Call to method initModClass from undeclared class \PHPWS_Core
Open

        \PHPWS_Core::initModClass('users', 'Users.php');

Call to method set from undeclared class \PHPWS_Settings
Open

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

Call to method simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::ERROR, 'Could not locate an internship with the given ID.');
Severity: Critical
Found in class/Command/ShowInternship.php by phan

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

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

Call to method getUsername from undeclared class \Current_User
Open

                return new BannerMajorsProvider(\Current_User::getUsername());
Severity
Category
Status
Source
Language