detain/db_abstraction

View on GitHub

Showing 88 of 88 total issues

The method num_fields is not named in camelCase.
Open

    public function num_fields()
    {
        return pg_numfields($this->queryId);
    }
Severity: Minor
Found in src/Pgsql/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method next_record is not named in camelCase.
Open

    public function next_record($resultType = MYSQLI_ASSOC)
    {
        // PDO result types so far seem to be +1
        ++$resultType;
        if (!$this->queryId) {
Severity: Minor
Found in src/Pdo/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method real_escape is not named in camelCase.
Open

    public function real_escape($string = '')
    {
        return escapeshellarg($string);
    }
Severity: Minor
Found in src/Adodb/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method next_record is not named in camelCase.
Open

    public function next_record($resultType = MYSQLI_BOTH)
    {
        if ($this->queryId === false) {
            $this->haltmsg('next_record called with no query pending.');
            return 0;
Severity: Minor
Found in src/Mysqli/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method num_rows is not named in camelCase.
Open

    public function num_rows()
    {
        return pg_numrows($this->queryId);
    }
Severity: Minor
Found in src/Pgsql/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method real_escape is not named in camelCase.
Open

    public function real_escape($string = '')
    {
        if ((!is_resource($this->linkId) || $this->linkId == 0) && !$this->connect()) {
            return $this->escape($string);
        }
Severity: Minor
Found in src/Mysqli/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method num_rows is not named in camelCase.
Open

    public function num_rows()
    {
        return @mysqli_num_rows($this->queryId);
    }
Severity: Minor
Found in src/Mysqli/Db.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

FIXME found
Open

            // FIXME! Add check for error levels
Severity: Minor
Found in src/Loader.php by fixme
Severity
Category
Status
Source
Language