src/Config/Settings/Import.php
Import
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
final class Import
{
/**
* ```php
* $cfg['Import']['format'] = 'sql';
File Import.php
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Config\Settings;
Method asArray
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function asArray(): array
{
return [
'format' => $this->format,
'charset' => $this->charset,
Method __construct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(array $import = [])
{
$this->format = $this->setFormat($import);
$this->charset = $this->setCharset($import);
$this->allow_interrupt = $this->setAllowInterrupt($import);