voyager-admin/voyager

View on GitHub
src/Classes/DynamicInput.php

Summary

Maintainability
A
2 hrs
Test Coverage
B
85%

Method addNumber has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function addNumber(?string $key = null, string|array|null $title = null, string|array|null $placeholder = null, ?int $value = null, ?int $min = null, ?int $max = null): self
Severity: Minor
Found in src/Classes/DynamicInput.php - About 45 mins to fix

    Method addMultipleChoiceInput has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        private function addMultipleChoiceInput(string $type, ?string $key = null, string|array|null $title = null, ?array $options = [], ?bool $multiple = false, mixed $value = null): void
    Severity: Minor
    Found in src/Classes/DynamicInput.php - About 45 mins to fix

      Method addSelect has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function addSelect(?string $key = null, string|array|null $title = null, ?array $options = [], ?bool $multiple = false, mixed $value = null): self
      Severity: Minor
      Found in src/Classes/DynamicInput.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status