1- <?php namespace Rap2hpoutre \LaravelLogViewer ;
1+ <?php
2+
3+ namespace Rap2hpoutre \LaravelLogViewer ;
24
35use Illuminate \Support \ServiceProvider ;
46
5- class LaravelLogViewerServiceProvider extends ServiceProvider {
7+ class LaravelLogViewerServiceProvider extends ServiceProvider
8+ {
69 /**
710 * Bootstrap the application events.
811 *
@@ -11,21 +14,20 @@ class LaravelLogViewerServiceProvider extends ServiceProvider {
1114 public function boot ()
1215 {
1316 if (method_exists ($ this , 'package ' )) {
14- $ this ->package ('rap2hpoutre/laravel-log-viewer ' , 'laravel-log-viewer ' , __DIR__ . '/../../ ' );
17+ $ this ->package ('rap2hpoutre/laravel-log-viewer ' , 'laravel-log-viewer ' , __DIR__ . '/../../ ' );
1518 }
1619
1720 if (method_exists ($ this , 'loadViewsFrom ' )) {
1821 $ this ->loadViewsFrom (__DIR__ .'/../../views ' , 'laravel-log-viewer ' );
1922 }
20-
23+
2124 if (method_exists ($ this , 'publishes ' )) {
2225 $ this ->publishes ([
23- __DIR__ .'/../../views ' => base_path ('/resources/views/vendor/laravel-log-viewer ' ),
26+ __DIR__ .'/../../views ' => base_path ('/resources/views/vendor/laravel-log-viewer ' ),
2427 ], 'views ' );
2528 $ this ->publishes ([
2629 __DIR__ .'/../../config/logviewer.php ' => $ this ->config_path ('logviewer.php ' ),
2730 ]);
28-
2931 }
3032 }
3133
@@ -42,12 +44,12 @@ public function register()
4244 /**
4345 * Get the configuration path.
4446 *
45- * @param string $path
47+ * @param string $path
4648 * @return string
4749 */
4850 private function config_path ($ path = '' )
4951 {
50- return function_exists ('config_path ' ) ? config_path ($ path ) : app ()->basePath () . DIRECTORY_SEPARATOR . 'config ' . ($ path ? DIRECTORY_SEPARATOR . $ path : $ path );
52+ return function_exists ('config_path ' ) ? config_path ($ path ) : app ()->basePath (). DIRECTORY_SEPARATOR . 'config ' . ($ path ? DIRECTORY_SEPARATOR . $ path : $ path );
5153 }
5254
5355}
0 commit comments