Finesse/MicroDB

View on GitHub

Showing 3 of 7 total issues

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

$message = "",
$code = 0,
Throwable $previous = null,
string $query = null,
array $values = null
Severity: Minor
Found in src/Exceptions/PDOException.php - About 35 mins to fix

    Function valueToString has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    protected function valueToString($value): string
    {
    if ($value === false) {
    return 'false';
    }
    Severity: Minor
    Found in src/Exceptions/PDOException.php - About 35 mins to fix

    Function bindValue has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    protected function bindValue(\PDOStatement $statement, $name, $value)
    {
    if ($value !== null && !is_scalar($value)) {
    throw new InvalidArgumentException(sprintf(
    'Bound value %s expected to be scalar or null, a %s given',
    Severity: Minor
    Found in src/Connection.php - About 25 mins to fix
    Severity
    Category
    Status
    Source
    Language