AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

Call to method loadObject from undeclared class \PHPWS_DB
Open

        $result = $db->loadObject($instance);
Severity: Critical
Found in class/DatabaseStorage.php by phan

Call to method allow from undeclared class \Current_User
Open

        if(!\Current_User::allow('intern', 'all_departments') && !\Current_User::isDeity()){
Severity: Critical
Found in class/DepartmentFactory.php by phan

Call to method simple from undeclared class \NQ
Open

            \NQ::simple('intern', \Intern\UI\NotifyUI::WARNING,
Severity: Critical
Found in class/Command/DocumentRest.php by phan

Suspicious array access to nullable ?array
Open

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

Call to method getOne from undeclared class \PHPWS_DB
Open

        $userId = \PHPWS_DB::getOne("SELECT id FROM users WHERE username = 'mcnaneym'");

Call to method __construct from undeclared class \PHPWS_User
Open

        $user = new \PHPWS_User($userId);

Call to method set from undeclared class \PHPWS_Settings
Open

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

Call to method close from undeclared class \NQ
Open

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

Argument 1 (termCode) is int but \Intern\TermFactory::getTermByTermCode() takes string defined at /code/class/TermFactory.php:32
Open

        $term = TermFactory::getTermByTermCode($intern->getTerm());
Severity: Minor
Found in class/Command/ShowInternship.php by phan

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

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

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

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

Method \Intern\DataProvider\Student\LocalDbStudentDataProvider::getFacultyMember is declared to return \Intern\DataProvider\Student\stdClass but has no return value
Open

    public function getFacultyMember($facultyId)

Call to method initModClass from undeclared class \PHPWS_Core
Open

        \PHPWS_Core::initModClass($class . '.php');
Severity: Critical
Found in class/DatabaseStorage.php by phan

Call to method logIfError from undeclared class \PHPWS_Error
Open

        if (\PHPWS_Error::logIfError($result)) {
Severity: Critical
Found in class/DatabaseStorage.php by phan

Suspicious type \Intern\unknown of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        $query = "SELECT * FROM intern_department WHERE id = $id";
Severity: Minor
Found in class/DepartmentFactory.php by phan

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

            throw new DatabaseException($result->toString());
Severity: Critical
Found in class/DepartmentFactory.php by phan

Returning type null but getDepartmentById() is declared to return \Intern\Department
Open

           return null;
Severity: Minor
Found in class/DepartmentFactory.php by phan

Call to method __construct from undeclared class \PHPWS_DB
Open

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

Call to method addSubmit from undeclared class \PHPWS_Form
Open

            $this->form->addSubmit('submit', 'Save');
Severity: Critical
Found in class/EditInternshipFormView.php by phan

Call to method getAll from undeclared class \PHPWS_DB
Open

        $results = \PHPWS_DB::getAll($sql);
Severity: Critical
Found in class/Command/GetSearchSuggestions.php by phan
Severity
Category
Status
Source
Language