AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

null passed to foreach instead of array
Open

        foreach ($values as $column => $value) {
Severity: Minor
Found in class/SubselectDatabase.php by phan

Call to method log from undeclared class \PHPWS_Error
Open

                        PHPWS_Error::log($result);
Severity: Critical
Found in class/SubselectDatabase.php by phan

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

                $column_info['index'][] = $result['index'];
Severity: Info
Found in class/SubselectDatabase.php by phan

Reference to undeclared property \Intern\SubselectDatabase->where
Open

        if ($require_where && empty($object->id) && empty($this->where)) {
Severity: Minor
Found in class/SubselectDatabase.php by phan

Reference to undeclared property \Intern\SubselectDatabase->where
Open

        if ($require_where && empty($this->where)) {
Severity: Minor
Found in class/SubselectDatabase.php by phan

Returning type ?array<int>[]|?object[]</int> but getObjects() is declared to return array
Open

        return $items;
Severity: Minor
Found in class/SubselectDatabase.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string order_column Table column that contains the order of the entries': after string, did not see an element name (will guess based on comment order)
Open

     * @param string  order_column Table column that contains the order of the entries
Severity: Info
Found in class/SubselectDatabase.php by phan

Reference to undeclared constant \PHPWS_DB_ERROR_TABLE
Open

            return PHPWS_Error::get(PHPWS_DB_ERROR_TABLE, 'core', 'PHPWS_DB::createTableIndex');
Severity: Minor
Found in class/SubselectDatabase.php by phan

Call to method get from undeclared class \PHPWS_Error
Open

            return PHPWS_Error::get(PHPWS_DB_ERROR_TABLE, 'core', 'PHPWS_DB::createTable');
Severity: Critical
Found in class/SubselectDatabase.php by phan

Reference to undeclared constant \PHPWS_DB_ERROR_TABLE
Open

            return PHPWS_Error::get(PHPWS_DB_ERROR_TABLE, 'core', 'PHPWS_DB::alterColumnType');
Severity: Minor
Found in class/SubselectDatabase.php by phan

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

            $format[] = $whatever;
Severity: Info
Found in class/SubselectDatabase.php by phan

Default value for object $require_where can't be true
Open

    public function loadObject($object, $require_where = true)
Severity: Minor
Found in class/SubselectDatabase.php by phan

Call to method isError from undeclared class \PHPWS_Error
Open

        if (PHPWS_Error::isError($variables)) {
Severity: Critical
Found in class/SubselectDatabase.php by phan

Call to method plugObject from undeclared class \PHPWS_Core
Open

                    PHPWS_Core::plugObject($genClass, $sub, $args);
Severity: Critical
Found in class/SubselectDatabase.php by phan

Reference to undeclared property \Intern\SubselectDatabase->where
Open

        if (isset($this->qwhere) || !empty($this->where)) {
Severity: Minor
Found in class/SubselectDatabase.php by phan

Call to method logIfError from undeclared class \PHPWS_Error
Open

            if (PHPWS_Error::logIfError($db->update())) {
Severity: Critical
Found in class/SubselectDatabase.php by phan

Call to method get from undeclared class \PHPWS_Error
Open

            return PHPWS_Error::get(PHPWS_DB_ERROR_TABLE, 'core', 'PHPWS_DB::truncateTable()');
Severity: Critical
Found in class/SubselectDatabase.php by phan

Call to method query from undeclared class \PHPWS_DB
Open

        return PHPWS_DB::query($sql);
Severity: Critical
Found in class/SubselectDatabase.php by phan

Call to method get from undeclared class \PHPWS_Error
Open

            return PHPWS_Error::get(PHPWS_DB_BAD_COL_NAME, 'core', 'PHPWS_DB::renameTableColumn', $old_name);
Severity: Critical
Found in class/SubselectDatabase.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string column Name of column to add': after string, did not see an element name (will guess based on comment order)
Open

     * @param string  column    Name of column to add
Severity: Info
Found in class/SubselectDatabase.php by phan
Severity
Category
Status
Source
Language