Sorry, data for that comparison is no longer available.

laravel/framework

View on GitHub
types/Database/Eloquent/Relations.php

Summary

Maintainability
B
6 hrs
Test Coverage

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

function test(User $user, Post $post, Comment $comment, ChildUser $child): void
{
    assertType('Illuminate\Database\Eloquent\Relations\HasOne<Illuminate\Types\Relations\Address, Illuminate\Types\Relations\User>', $user->address());
    assertType('Illuminate\Types\Relations\Address|null', $user->address()->getResults());
    assertType('Illuminate\Database\Eloquent\Collection<int, Illuminate\Types\Relations\Address>', $user->address()->get());
Severity: Major
Found in types/Database/Eloquent/Relations.php - About 3 hrs to fix

    File Relations.php has 267 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace Illuminate\Types\Relations;
    
    use Illuminate\Database\Eloquent\Model;
    Severity: Minor
    Found in types/Database/Eloquent/Relations.php - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status