AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

Call to method __construct from undeclared class \BannerPermissionException (Did you mean class \Intern\Exception\BannerPermissionException)
Open

            throw new \BannerPermissionException('You do not have permission to access student data.');

Call to method addWhere from undeclared class \PHPWS_DB
Open

            $db->addWhere('id', $vars['id']);
Severity: Critical
Found in class/DatabaseStorage.php by phan

Call to method getRow from undeclared class \PHPWS_DB
Open

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

Call to method addWhere from undeclared class \PHPWS_DB
Open

        $db->addWhere('hidden', 0, '=', 'OR');
Severity: Critical
Found in class/DepartmentFactory.php by phan

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

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

Call to method __construct from undeclared class \PHPWS_Form
Open

        $this->form = new \PHPWS_Form('internship');
Severity: Critical
Found in class/EditInternshipFormView.php by phan

Call to method allow from undeclared class \Current_User
Open

        if($this->intern->getStateName() != 'DeniedState' && \Current_User::allow('intern', 'create_internship')){
Severity: Critical
Found in class/EditInternshipFormView.php by phan

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

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

Call to method isLogged from undeclared class \Current_User
Open

        if(!\Current_User::isLogged()){
Severity: Critical
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/FacultyDeptRest.php by phan

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

        $i = \Intern\InternshipFactory::getInternshipById($_REQUEST['internship_id']);

Call to method begin from undeclared class \PHPWS_DB
Open

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

Call to method allow from undeclared class \Current_User
Open

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

Suspicious array access to nullable ?array
Open

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

Suspicious array access to nullable ?array
Open

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

Call to method getCode on non-class type null
Open

                $i->major_code = $majors[0]->getCode();
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 loadAuthorization from undeclared class \Current_User
Open

        \Current_User::loadAuthorization($user);

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

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

Call to method set from undeclared class \PHPWS_Settings
Open

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