NovaPermissionServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
A register() 0 2 1
1
<?php
2
3
namespace Insenseanalytics\LaravelNovaPermission;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class NovaPermissionServiceProvider extends ServiceProvider
8
{
9
	/**
10
	 * Bootstrap any application services.
11
	 */
12
	public function boot()
13
	{
14
		$this->loadViewsFrom(__DIR__ . '/../resources/views', 'laravel-nova-permission');
15
		$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-nova-permission');
16
17
		$this->publishes([
18
			__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-nova-permission'),
0 ignored issues
show
Bug introduced by
The function resource_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
			__DIR__.'/../resources/lang' => /** @scrutinizer ignore-call */ resource_path('lang/vendor/laravel-nova-permission'),
Loading history...
19
		], 'laravel-nova-permission-lang');
20
	}
21
22
	/**
23
	 * Register any application services.
24
	 */
25
	public function register()
26
	{
27
	}
28
}
29