GrafiteInc/Html

View on GitHub
src/HtmlProvider.php

Summary

Maintainability
B
6 hrs
Test Coverage

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

    public function boot()
    {
        $this->publishes([
            __DIR__ . '/../config/html.php' => base_path('config/html.php'),
        ]);
Severity: Major
Found in src/HtmlProvider.php - About 3 hrs to fix

    Avoid too many return statements within this method.
    Open

                return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->title(); ?>";
    Severity: Major
    Found in src/HtmlProvider.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->limit(40); ?>";
      Severity: Major
      Found in src/HtmlProvider.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->headline(); ?>";
        Severity: Major
        Found in src/HtmlProvider.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->plural(); ?>";
          Severity: Major
          Found in src/HtmlProvider.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return "<?php echo \Illuminate\Support\Str::of($expression)->replace('_', ' ')->singular(); ?>";
            Severity: Major
            Found in src/HtmlProvider.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return "<?php echo ($params[0]) ? $params[1] : ''; ?>";
              Severity: Major
              Found in src/HtmlProvider.php - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status