MacroServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 9 1
1
<?php
2
3
namespace App\Providers;
4
5
use App\Logic\Macros\Macros;
0 ignored issues
show
Bug introduced by
The type App\Logic\Macros\Macros was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Collective\Html\HtmlServiceProvider;
7
8
/**
9
 * Class MacroServiceProvider.
10
 */
11
class MacroServiceProvider extends HtmlServiceProvider
12
{
13
    /**
14
     * Register the application services.
15
     *
16
     * @return void
17
     */
18
    public function register()
19
    {
20
        // Macros must be loaded after the HTMLServiceProvider's
21
        // register method is called. Otherwise, csrf tokens
22
        // will not be generated
23
        parent::register();
24
25
        // Load HTML Macros
26
        require base_path().'/app/Logic/Macros/HtmlMacros.php';
27
    }
28
}
29