laravel/framework

View on GitHub
src/Illuminate/Foundation/Console/PolicyMakeCommand.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    protected function replaceModel($stub, $model)
    {
        $model = str_replace('/', '\\', $model);

        if (str_starts_with($model, '\\')) {
Severity: Minor
Found in src/Illuminate/Foundation/Console/PolicyMakeCommand.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status