SAREhub/PHP_Commons

View on GitHub
src/SAREhub/Commons/Misc/SqliteHashStorage.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '42', column '30').
Open

        $this->storage = new \SQLite3($this->filePath);

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The closing brace for the class must go on the next line after the body
Open

}

Line exceeds 120 characters; contains 126 characters
Open

            $createTableSql = "CREATE TABLE " . $this->tableName . "(id TEXT PRIMARY KEY, hash TEXT NOT NULL) WITHOUT ROWID;";

Expected 1 newline at end of file; 0 found
Open

}

There are no issues that match your filters.

Category
Status