davide-casiraghi/ci-global-calendar

View on GitHub
app/Providers/AppServiceProvider.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function boot()
    {
        // FIX THE LOCALE BUG WITH CARBON - https://vegibit.com/what-is-a-view-composer-in-laravel/
        View::composer('*', function ($view) {
            $locale = App::getLocale();
Severity: Minor
Found in app/Providers/AppServiceProvider.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                return "<?php echo date('g.i a', strtotime($expression))?>";
    Severity: Major
    Found in app/Providers/AppServiceProvider.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status