jidaikobo-shibata/a11yc

View on GitHub
classes/Db.php

Summary

Maintainability
A
1 hr
Test Coverage

Method initDefault has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function initDefault($name = 'default')
    {
        $set_utf8 = A11YC_DB_TYPE == 'mysql' ? ' SET utf8' : '';
        $auto_increment = A11YC_DB_TYPE == 'mysql' ? 'auto_increment' : '' ;

Severity: Minor
Found in classes/Db.php - About 1 hr to fix

    Avoid classes with short names like Db. Configured minimum length is 3.
    Open

    class Db extends \Kontiki\Db
    {
        protected static $version = null;
    
        /**
    Severity: Minor
    Found in classes/Db.php by phpmd

    ShortClassName

    Since: 2.9

    Detects when classes or interfaces have a very short name.

    Example

    class Fo {
    
    }
    
    interface Fo {
    
    }

    Source https://phpmd.org/rules/naming.html#shortclassname

    There are no issues that match your filters.

    Category
    Status