@@ -15,12 +15,12 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function boot() |
| 17 | 17 | { |
| 18 | - $this->loadViewsFrom(__DIR__.'/../../resources/views/', 'apidoc'); |
|
| 19 | - $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'apidoc'); |
|
| 18 | + $this->loadViewsFrom(__DIR__ . '/../../resources/views/', 'apidoc'); |
|
| 19 | + $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'apidoc'); |
|
| 20 | 20 | |
| 21 | 21 | $this->publishes([ |
| 22 | - __DIR__.'/../../resources/lang' => $this->resource_path('lang/vendor/apidoc'), |
|
| 23 | - __DIR__.'/../../resources/views' => $this->resource_path('views/vendor/apidoc'), |
|
| 22 | + __DIR__ . '/../../resources/lang' => $this->resource_path('lang/vendor/apidoc'), |
|
| 23 | + __DIR__ . '/../../resources/views' => $this->resource_path('views/vendor/apidoc'), |
|
| 24 | 24 | ]); |
| 25 | 25 | } |
| 26 | 26 | |
@@ -31,10 +31,10 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function register() |
| 33 | 33 | { |
| 34 | - $this->app['apidoc.generate'] = $this->app->share(function () { |
|
| 34 | + $this->app['apidoc.generate'] = $this->app->share(function() { |
|
| 35 | 35 | return new GenerateDocumentation(); |
| 36 | 36 | }); |
| 37 | - $this->app['apidoc.update'] = $this->app->share(function () { |
|
| 37 | + $this->app['apidoc.update'] = $this->app->share(function() { |
|
| 38 | 38 | return new UpdateDocumentation(); |
| 39 | 39 | }); |
| 40 | 40 | |
@@ -53,6 +53,6 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public function resource_path($path = '') |
| 55 | 55 | { |
| 56 | - return app()->basePath().'/resources'.($path ? '/'.$path : $path); |
|
| 56 | + return app()->basePath() . '/resources' . ($path ? '/' . $path : $path); |
|
| 57 | 57 | } |
| 58 | 58 | } |