@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $contents = $this->transform($pathTo . $fileName . '.' . $fileExtension); |
| 60 | 60 | $saveToPath = config('laradox.documentation_source.save_to'); |
| 61 | 61 | |
| 62 | - if (! file_exists($saveToPath)) { |
|
| 62 | + if (!file_exists($saveToPath)) { |
|
| 63 | 63 | mkdir($saveToPath); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | $settings = config('laradox.documentation_source'); |
| 19 | 19 | $filePath = $settings['save_to'] . '/' . $settings['filename'] . '.json'; |
| 20 | 20 | |
| 21 | - if (! file_exists($filePath)) { |
|
| 22 | - abort(404, 'Cannot find '.$filePath); |
|
| 21 | + if (!file_exists($filePath)) { |
|
| 22 | + abort(404, 'Cannot find ' . $filePath); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | $content = json_decode( |
@@ -33,11 +33,11 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function boot() |
| 35 | 35 | { |
| 36 | - $viewPath = __DIR__.'/../resources/views'; |
|
| 36 | + $viewPath = __DIR__ . '/../resources/views'; |
|
| 37 | 37 | $this->loadViewsFrom($viewPath, 'laradox'); |
| 38 | 38 | |
| 39 | - $this->app->router->group(['namespace' => 'Iocaste\Laradox'], function ($router) { |
|
| 40 | - require __DIR__.'/routes.php'; |
|
| 39 | + $this->app->router->group(['namespace' => 'Iocaste\Laradox'], function($router) { |
|
| 40 | + require __DIR__ . '/routes.php'; |
|
| 41 | 41 | }); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function register() |
| 50 | 50 | { |
| 51 | - $configPath = __DIR__.'/../config/laradox.php'; |
|
| 51 | + $configPath = __DIR__ . '/../config/laradox.php'; |
|
| 52 | 52 | $this->mergeConfigFrom($configPath, 'laradox'); |
| 53 | 53 | |
| 54 | - $this->app->singleton('command.laradox.transform-docs', function () { |
|
| 54 | + $this->app->singleton('command.laradox.transform-docs', function() { |
|
| 55 | 55 | return new TransformDocsCommand(); |
| 56 | 56 | }); |
| 57 | 57 | |