phpmyadmin/phpmyadmin

View on GitHub
src/Config/Settings/Export.php

Summary

Maintainability
F
6 days
Test Coverage

File Export.php has 1184 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare(strict_types=1);

namespace PhpMyAdmin\Config\Settings;
Severity: Major
Found in src/Config/Settings/Export.php - About 3 days to fix

    Export has 111 functions (exceeds 20 allowed). Consider refactoring.
    Open

    final class Export
    {
        /**
         * ```php
         * $cfg['Export']['format'] = 'sql';
    Severity: Major
    Found in src/Config/Settings/Export.php - About 2 days to fix

      Method asArray has 111 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function asArray(): array
          {
              return [
                  'format' => $this->format,
                  'method' => $this->method,
      Severity: Major
      Found in src/Config/Settings/Export.php - About 4 hrs to fix

        Method __construct has 109 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function __construct(array $export = [])
            {
                $this->format = $this->setFormat($export);
                $this->method = $this->setMethod($export);
                $this->compression = $this->setCompression($export);
        Severity: Major
        Found in src/Config/Settings/Export.php - About 4 hrs to fix

          There are no issues that match your filters.

          Category
          Status