AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

Call to method addColumn from undeclared class \PHPWS_DB
Open

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

Call to method setIndexBy from undeclared class \PHPWS_DB
Open

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

Call to method addPageTitle from undeclared class \Layout
Open

        \Layout::addPageTitle('Edit Internship');
Severity: Critical
Found in class/EditInternshipFormView.php by phan

Call to undeclared function \javascript()
Open

        javascript('jquery_ui');
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 isLogged from undeclared class \Current_User
Open

        if (!\Current_User::isLogged()) {
Severity: Critical
Found in class/Command/DocumentRest.php by phan

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

            $contact = EmergencyContactFactory::getContactById($contactId);
Severity: Minor
Found in class/Command/EmergencyContactRest.php by phan

Argument 1 (id) is string|string[] but \Intern\DepartmentFactory::getDepartmentById() takes \Intern\unknown defined at /code/class/DepartmentFactory.php:36
Open

        $department = DepartmentFactory::getDepartmentById($departmentId);

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

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

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

        $db = Database::newDB();
Severity: Critical
Found in class/Command/LevelRest.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($i->getTerm());
Severity: Minor
Found in class/Command/RequestDrugScreening.php by phan

Call to method simple from undeclared class \NQ
Open

                \NQ::simple('intern', \Intern\UI\NotifyUI::WARNING, 'The affiliation agreement begin date must be before the end date.');
Severity: Critical
Found in class/Command/SaveAffiliate.php by phan

Suspicious array access to nullable ?array
Open

            $affiliate_agreement->setBeginDate(strtotime($_REQUEST['begin_date']));
Severity: Minor
Found in class/Command/SaveAffiliate.php by phan

Call to method rollback from undeclared class \PHPWS_DB
Open

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

Assigning 0|false|int to property but \Intern\Internship->start_date is null
Open

        $i->start_date = !empty($_REQUEST['start_date']) ? strtotime($_REQUEST['start_date']) : 0;
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

        $i->credits = isset($_POST['multipart']) && isset($_POST['secondary_part']) ? null : (int) $_REQUEST['credits'];
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

            $supervisor->supervisor_country = $_REQUEST['supervisor_country'] == '-1' ? null : $_REQUEST['supervisor_country'];
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Call to method commit from undeclared class \PHPWS_DB
Open

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

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

                return \PHPWS_Core::reroute('index.php?module=intern&action=ShowInternship&internship_id=' . $i->id);
Severity: Minor
Found in class/Command/SaveInternship.php by phan

Call to method set from undeclared class \PHPWS_Settings
Open

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