Completed
Branch master (bd0388)
by Koss
04:30
created
Category
src/LogViewerServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,17 +44,17 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function setupPackage()
46 46
     {
47
-        $source = realpath(__DIR__ . '/../config/logviewer.php');
47
+        $source = realpath(__DIR__.'/../config/logviewer.php');
48 48
 
49 49
         $this->publishes([$source => config_path('logviewer.php')], 'config');
50 50
         $this->publishes([
51
-            realpath(__DIR__ . '/../assets/css') => public_path('assets/styles'),
52
-            realpath(__DIR__ . '/../assets/js')  => public_path('assets/scripts'),
51
+            realpath(__DIR__.'/../assets/css') => public_path('assets/styles'),
52
+            realpath(__DIR__.'/../assets/js')  => public_path('assets/scripts'),
53 53
         ], 'public');
54 54
 
55 55
         $this->mergeConfigFrom($source, 'logviewer');
56 56
 
57
-        $this->loadViewsFrom(realpath(__DIR__ . '/../views'), 'logviewer');
57
+        $this->loadViewsFrom(realpath(__DIR__.'/../views'), 'logviewer');
58 58
     }
59 59
 
60 60
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function setupRoutes(Router $router)
68 68
     {
69
-        $router->group(['namespace' => 'KossShtukert\LogViewer\Http\Controllers'], function (Router $router) {
70
-            require __DIR__ . '/Http/routes.php';
69
+        $router->group(['namespace' => 'KossShtukert\LogViewer\Http\Controllers'], function(Router $router) {
70
+            require __DIR__.'/Http/routes.php';
71 71
         });
72 72
     }
73 73
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function registerLogData()
96 96
     {
97
-        $this->app->singleton('logviewer.data', function () {
97
+        $this->app->singleton('logviewer.data', function() {
98 98
             return new Data();
99 99
         });
100 100
 
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
      */
109 109
     protected function registerLogFilesystem()
110 110
     {
111
-        $this->app->singleton('logviewer.filesystem', function ($app) {
111
+        $this->app->singleton('logviewer.filesystem', function($app) {
112 112
             $files = $app['files'];
113
-            $path = $app['path.storage'] . '/logs';
113
+            $path = $app['path.storage'].'/logs';
114 114
 
115 115
             return new Filesystem($files, $path);
116 116
         });
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     protected function registerLogFactory()
127 127
     {
128
-        $this->app->singleton('logviewer.factory', function ($app) {
128
+        $this->app->singleton('logviewer.factory', function($app) {
129 129
             $filesystem = $app['logviewer.filesystem'];
130 130
             $levels = $app['logviewer.data']->levels();
131 131
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     protected function registerLogViewer()
144 144
     {
145
-        $this->app->singleton('logviewer', function ($app) {
145
+        $this->app->singleton('logviewer', function($app) {
146 146
             $factory = $app['logviewer.factory'];
147 147
             $filesystem = $app['logviewer.filesystem'];
148 148
             $data = $app['logviewer.data'];
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     protected function registerLogViewerController()
162 162
     {
163
-        $this->app->bind(LogViewerController::class, function ($app) {
163
+        $this->app->bind(LogViewerController::class, function($app) {
164 164
             $perPage = $app['config']['logviewer.per_page'];
165 165
             $middleware = $app['config']['logviewer.middleware'];
166 166
 
Please login to merge, or discard this patch.