AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

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

$link[] = array(
Severity: Info
Found in boost/controlpanel.php by phan

@throws type of getAffiliationById has undeclared type \Intern\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Open

    public static function getAffiliationById($id)
Severity: Minor
Found in class/AffiliationAgreementFactory.php by phan

Returning type null but getAffiliationById() is declared to return \Intern\AffiliationAgreement
Open

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

Call to method process from undeclared class \PHPWS_Template
Open

        return \PHPWS_Template::process($tpl, 'intern', 'changeHistory.tpl');
Severity: Critical
Found in class/ChangeHistoryView.php by phan

Call to method reroute from undeclared class \PHPWS_Core
Open

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

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

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

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

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

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

        $agreement = AffiliationAgreementFactory::getAffiliationById($affiliationId);
Severity: Minor
Found in class/Command/AffiliateRest.php by phan

Call to method isLogged from undeclared class \Current_User
Open

        if(!\Current_User::isLogged()){
Severity: Critical
Found in class/Command/AgreementTypeRest.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 affiliation agreement.');
Severity: Critical
Found in class/Command/AgreementTypeRest.php by phan

Call to method registerPermissions from undeclared class \Users_Permission
Open

            Users_Permission::registerPermissions('intern', $content);
Severity: Critical
Found in boost/update.php by phan

Call to method addColumn from undeclared class \Intern\PHPWS_DB
Open

        $db->addColumn('id', $count=true);
Severity: Critical
Found in class/Admin.php by phan

Saw misspelled annotation @returns. Did you mean @return?
Open

     * @returns AffiliationAgreement

Parameter $phpwsUser has undeclared type ?\PHPWS_User
Open

    public function __construct(Internship $i = null, \PHPWS_User $phpwsUser = null, $timestamp = null, WorkflowState $fromState = null, WorkflowState $toState = null, $note = null)
Severity: Minor
Found in class/ChangeHistory.php by phan

Call to method allow from undeclared class \Current_User
Open

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

Call to method home from undeclared class \PHPWS_Core
Open

            \PHPWS_Core::home();
Severity: Critical
Found in class/Command/AddInternship.php by phan

Reference to undeclared property \Intern\AffiliationAgreement->depratments
Open

        $agreement->depratments = array();
Severity: Minor
Found in class/Command/AffiliateRest.php by phan

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

use \Intern\State;
Severity: Minor
Found in class/Command/AffiliateStateRest.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/AffiliateStateRest.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=' . $copyId);
Severity: Critical
Found in class/Command/CopyInternshipToNextTerm.php by phan
Severity
Category
Status
Source
Language