@@ -3,11 +3,7 @@ |
||
3 | 3 | namespace Mpociot\ApiDoc\Commands; |
4 | 4 | |
5 | 5 | use Illuminate\Console\Command; |
6 | -use Illuminate\Support\Facades\Route; |
|
7 | -use Mpociot\ApiDoc\ApiDocGenerator; |
|
8 | 6 | use Mpociot\Documentarian\Documentarian; |
9 | -use phpDocumentor\Reflection\DocBlock; |
|
10 | -use Symfony\Component\Process\Process; |
|
11 | 7 | |
12 | 8 | class UpdateDocumentation extends Command |
13 | 9 | { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $documentarian = new Documentarian(); |
51 | 51 | |
52 | 52 | if (!is_dir($outputPath)) { |
53 | - $this->error('There is no generated documentation available at '.$outputPath.'.'); |
|
53 | + $this->error('There is no generated documentation available at ' . $outputPath . '.'); |
|
54 | 54 | return false; |
55 | 55 | } |
56 | 56 | $this->info('Updating API HTML code'); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function boot() |
18 | 18 | { |
19 | - $this->loadViewsFrom(__DIR__.'/../../resources/views/', 'apidoc'); |
|
19 | + $this->loadViewsFrom(__DIR__ . '/../../resources/views/', 'apidoc'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function register() |
26 | 26 | { |
27 | - $this->app['apidoc.generate'] = $this->app->share(function () { |
|
27 | + $this->app['apidoc.generate'] = $this->app->share(function() { |
|
28 | 28 | return new GenerateDocumentation(); |
29 | 29 | }); |
30 | - $this->app['apidoc.update'] = $this->app->share(function () { |
|
30 | + $this->app['apidoc.update'] = $this->app->share(function() { |
|
31 | 31 | return new UpdateDocumentation(); |
32 | 32 | }); |
33 | 33 |