laravel/framework

View on GitHub
src/Illuminate/Database/Eloquent/Relations/BelongsTo.php

Summary

Maintainability
A
3 hrs
Test Coverage

BelongsTo has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

class BelongsTo extends Relation
{
    use ComparesRelatedModels,
        InteractsWithDictionary,
        SupportsDefaultModels;
Severity: Minor
Found in src/Illuminate/Database/Eloquent/Relations/BelongsTo.php - About 2 hrs to fix

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

        public function __construct(Builder $query, Model $child, $foreignKey, $ownerKey, $relationName)
    Severity: Minor
    Found in src/Illuminate/Database/Eloquent/Relations/BelongsTo.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status