AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

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

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

Suspicious array access to nullable ?array
Open

        $i->paid = $_REQUEST['payment'] == 'paid';
Severity: Minor
Found in class/Command/SaveInternship.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

Call to method reroute from undeclared class \PHPWS_Core
Open

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

Suspicious array access to null
Open

                $vals[] = $field;
Severity: Minor
Found in class/Command/SaveInternship.php by phan

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

            $dbC = 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/EmergencyContactRest.php by phan

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

            throw new InvalidArgumentException('Missing contact id.');
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::ERROR, 'Please fill in the highlighted fields.');
Severity: Critical
Found in class/Command/SaveAffiliate.php by phan

Call to method reroute from undeclared class \PHPWS_Core
Open

                return \PHPWS_Core::reroute($url);
Severity: Critical
Found in class/Command/SaveAffiliate.php by phan

Call to method reroute from undeclared class \PHPWS_Core
Open

        return \PHPWS_Core::reroute('index.php?module=intern&action=showAffiliateAgreement');
Severity: Critical
Found in class/Command/SaveAffiliate.php by phan

Call to method reroute from undeclared class \PHPWS_Core
Open

        return \PHPWS_Core::reroute($url);
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Call to method isAjax from undeclared class \Canopy\Request
Open

        if(\Canopy\Request::isAjax()){
Severity: Critical
Found in class/Command/SaveInternship.php by phan

Suspicious array access to nullable ?array
Open

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

Variable $major is undeclared (Did you mean $majors)
Open

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

Invalid offset 0 of array type array{}
Open

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

Suspicious array access to nullable ?array
Open

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

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

use Intern\Email;

Variable $data was undeclared, but array fields are being added to it.
Open

                $data['message'] = '';
Severity: Info
Found in class/Command/DocumentRest.php by phan

Variable $info was undeclared, but array fields are being added to it.
Open

        $info['type'] = $result[0]['contract_type'];
Severity: Info
Found in class/Command/DocumentRest.php by phan
Severity
Category
Status
Source
Language