autowp/autowp

View on GitHub
module/Application/src/Form/Moder/ItemParent.php

Summary

Maintainability
A
2 hrs
Test Coverage
F
0%

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

    public function __construct(?string $name = null, array $options = [])
    {
        parent::__construct($name, $options);

        $this->setWrapElements(true);
Severity: Minor
Found in module/Application/src/Form/Moder/ItemParent.php - About 1 hr to fix

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

        public function getInputFilterSpecification(): array // @phpstan-ignore-line
        {
            return [
                'catname' => [
                    'required'   => false,
    Severity: Minor
    Found in module/Application/src/Form/Moder/ItemParent.php - About 1 hr to fix

      syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
      Open

          private array $languages = [];

      There are no issues that match your filters.

      Category
      Status