Code Duplication    Length = 30-30 lines in 4 locations

src/Modules/Acl/Providers/AclServiceProvider.php 1 location

@@ 10-39 (lines=30) @@
7
use View;
8
use Illuminate\Support\ServiceProvider;
9
10
class AclServiceProvider extends ServiceProvider
11
{
12
	/**
13
	 * Register the Acl module service provider.
14
	 *
15
	 * @return void
16
	 */
17
	public function register()
18
	{
19
		// This service provider is a convenient place to register your modules
20
		// services in the IoC container. If you wish, you may make additional
21
		// methods or service providers to keep the code more focused and granular.
22
		App::register('App\Modules\Acl\Providers\RouteServiceProvider');
23
24
		$this->registerNamespaces();
25
	}
26
27
	/**
28
	 * Register the Acl module resource namespaces.
29
	 *
30
	 * @return void
31
	 */
32
	protected function registerNamespaces()
33
	{
34
		Lang::addNamespace('acl', realpath(__DIR__.'/../Resources/Lang'));
35
		
36
		View::addNamespace('acl', base_path('resources/views/vendor/acl'));
37
		View::addNamespace('acl', realpath(__DIR__.'/../Resources/Views'));
38
	}
39
}
40

src/Modules/Logging/Providers/LoggingServiceProvider.php 1 location

@@ 10-39 (lines=30) @@
7
use View;
8
use Illuminate\Support\ServiceProvider;
9
10
class LoggingServiceProvider extends ServiceProvider
11
{
12
	/**
13
	 * Register the Logging module service provider.
14
	 *
15
	 * @return void
16
	 */
17
	public function register()
18
	{
19
		// This service provider is a convenient place to register your modules
20
		// services in the IoC container. If you wish, you may make additional
21
		// methods or service providers to keep the code more focused and granular.
22
		App::register('App\Modules\Logging\Providers\RouteServiceProvider');
23
24
		$this->registerNamespaces();
25
	}
26
27
	/**
28
	 * Register the Logging module resource namespaces.
29
	 *
30
	 * @return void
31
	 */
32
	protected function registerNamespaces()
33
	{
34
		Lang::addNamespace('logging', realpath(__DIR__.'/../Resources/Lang'));
35
		
36
		View::addNamespace('logging', base_path('resources/views/vendor/logging'));
37
		View::addNamespace('logging', realpath(__DIR__.'/../Resources/Views'));
38
	}
39
}
40

src/Modules/Notifications/Providers/NotificationsServiceProvider.php 1 location

@@ 10-39 (lines=30) @@
7
use View;
8
use Illuminate\Support\ServiceProvider;
9
10
class NotificationsServiceProvider extends ServiceProvider
11
{
12
	/**
13
	 * Register the Notifications module service provider.
14
	 *
15
	 * @return void
16
	 */
17
	public function register()
18
	{
19
		// This service provider is a convenient place to register your modules
20
		// services in the IoC container. If you wish, you may make additional
21
		// methods or service providers to keep the code more focused and granular.
22
		App::register('App\Modules\Notifications\Providers\RouteServiceProvider');
23
24
		$this->registerNamespaces();
25
	}
26
27
	/**
28
	 * Register the Notifications module resource namespaces.
29
	 *
30
	 * @return void
31
	 */
32
	protected function registerNamespaces()
33
	{
34
		Lang::addNamespace('notifications', realpath(__DIR__.'/../Resources/Lang'));
35
		
36
		View::addNamespace('notifications', base_path('resources/views/vendor/notifications'));
37
		View::addNamespace('notifications', realpath(__DIR__.'/../Resources/Views'));
38
	}
39
}
40

src/Modules/Reporting/Providers/ReportsServiceProvider.php 1 location

@@ 10-39 (lines=30) @@
7
use View;
8
use Illuminate\Support\ServiceProvider;
9
10
class ReportingServiceProvider extends ServiceProvider
11
{
12
	/**
13
	 * Register the Reporting module service provider.
14
	 *
15
	 * @return void
16
	 */
17
	public function register()
18
	{
19
		// This service provider is a convenient place to register your modules
20
		// services in the IoC container. If you wish, you may make additional
21
		// methods or service providers to keep the code more focused and granular.
22
		App::register('App\Modules\Reporting\Providers\RouteServiceProvider');
23
24
		$this->registerNamespaces();
25
	}
26
27
	/**
28
	 * Register the Reporting module resource namespaces.
29
	 *
30
	 * @return void
31
	 */
32
	protected function registerNamespaces()
33
	{
34
		Lang::addNamespace('reports', realpath(__DIR__.'/../Resources/Lang'));
35
		
36
		View::addNamespace('reports', base_path('resources/views/vendor/reports'));
37
		View::addNamespace('reports', realpath(__DIR__.'/../Resources/Views'));
38
	}
39
}
40