mvanduijker/joomla-cli

View on GitHub
src/JoomlaCli/Console/Command/Core/InstallDbCommand.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method configure has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function configure()
    {
        $this
            ->setName('core:install-db')
            ->setDescription('Install default joomla database')
Severity: Major
Found in src/JoomlaCli/Console/Command/Core/InstallDbCommand.php - About 2 hrs to fix

    Method createAdminUser has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function createAdminUser()
        {
            $release = array_keys($this->version)[0];
            if (is_numeric(substr($release, 0, 1)) && substr($release, 0, 1) < 3) {
                // joomla 2.x admin user insert query
    Severity: Minor
    Found in src/JoomlaCli/Console/Command/Core/InstallDbCommand.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status