felixarntz/plugin-lib

View on GitHub
src/translations/translations-manager.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method init has 149 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        protected function init() {
            $this->translations = array(
                /* --- Model --- */

                'db_insert_error'                                       => $this->__translate( 'Could not insert model into the database.', 'textdomain' ),
Severity: Major
Found in src/translations/translations-manager.php - About 5 hrs to fix

    The method init() has 197 lines of code. Current threshold is set to 100. Avoid really long methods.
    Open

            protected function init() {
                $this->translations = array(
                    /* --- Model --- */
    
                    'db_insert_error'                                       => $this->__translate( 'Could not insert model into the database.', 'textdomain' ),

    There are no issues that match your filters.

    Category
    Status