attogram/attogram-database

View on GitHub

Showing 7,594 of 7,594 total issues

Reference to undeclared property \Database->database
Open

            $this->database = NULL;
Severity: Minor
Found in admin_actions/db-admin.php by phan

Reference to undeclared property \Database->database
Open

            $result = $this->database->query($query);
Severity: Minor
Found in admin_actions/db-admin.php by phan

Variable $this is undeclared
Open

if (!$this->database->loadTableDefinitions() || !$this->database->tables) {
Severity: Minor
Found in admin_actions/db-tables.php by phan

Variable $this is undeclared
Open

$this->pageFooter();
Severity: Minor
Found in admin_actions/db-tables.php by phan

TODO found
Open

                                        // TODO: try removing table constraint
Severity: Minor
Found in admin_actions/db-admin.php by fixme

Argument 4 (path) is null but \setcookie() takes string
Open

                setcookie(COOKIENAME."_salt", "", time()-86400, null, null, null, true);
Severity: Minor
Found in admin_actions/db-admin.php by phan

Argument 6 (secure) is null but \setcookie() takes bool
Open

        setcookie(COOKIENAME."_salt", "", time()-86400, null, null, null, true);
Severity: Minor
Found in admin_actions/db-admin.php by phan

Reference to undeclared property \Database->database
Open

                    $this->database = new SQLiteDatabase($this->data['path']);
Severity: Minor
Found in admin_actions/db-admin.php by phan

Variable $this is undeclared
Open

        .$this->database->getTableCount($tableName).'</code> entries'
Severity: Minor
Found in admin_actions/db-tables.php by phan

Variable $this is undeclared
Open

$this->pageHeader('⌚ Event Log');
Severity: Minor
Found in admin_actions/events.php by phan

Call to method getAllSubdirectories from undeclared class \Attogram\Attogram
Open

        $dirs = Attogram::getAllSubdirectories($this->modulesDirectory, 'tables');
Severity: Critical
Found in includes/SqliteDatabase.php by phan

TODO found
Open

                // TODO: In case we renamed a column on which there is an index, we need to recreate the index with the column name adjusted.
Severity: Minor
Found in admin_actions/db-admin.php by fixme

Reference to undeclared property \Database->database
Open

            return $this->database->lastInsertId();
Severity: Minor
Found in admin_actions/db-admin.php by phan

Suspicious array access to nullable ?array|?false
Open

            if($csv_data[0] != NULL || count($csv_data)>1)
Severity: Minor
Found in admin_actions/db-admin.php by phan
Severity
Category
Status
Source
Language