laravel/framework

View on GitHub
src/Illuminate/Testing/Fluent/Concerns/Has.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function has($key, $length = null, ?Closure $callback = null): self
    {
        $prop = $this->prop();

        if (is_int($key) && is_null($length)) {
Severity: Minor
Found in src/Illuminate/Testing/Fluent/Concerns/Has.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

            return $this;
    Severity: Major
    Found in src/Illuminate/Testing/Fluent/Concerns/Has.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status