@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $app[self::SWAGGER_ANALYSIS] = null; |
21 | 21 | $app[self::SWAGGER_PROCESSORS] = []; |
22 | 22 | |
23 | - $app[self::SWAGGER_CONFIG] = $app::share(function (Application $app) { |
|
23 | + $app[self::SWAGGER_CONFIG] = $app::share(function(Application $app) { |
|
24 | 24 | return new SwaggerConfig( |
25 | 25 | $app[self::SWAGGER_SERVICE_PATH], |
26 | 26 | $app[self::SWAGGER_ANALYSER], |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | ); |
31 | 31 | }); |
32 | 32 | |
33 | - $app[self::SWAGGER_SERVICE] = $app::share(function (Application $app) { |
|
33 | + $app[self::SWAGGER_SERVICE] = $app::share(function(Application $app) { |
|
34 | 34 | return new SwaggerService($app[self::SWAGGER_CONFIG]); |
35 | 35 | }); |
36 | 36 | |
37 | - $app[self::SWAGGER] = $app::share(function (Application $app) { |
|
37 | + $app[self::SWAGGER] = $app::share(function(Application $app) { |
|
38 | 38 | /** @var SwaggerService $swagger */ |
39 | 39 | $swagger = $app[self::SWAGGER_SERVICE]; |
40 | 40 | return $swagger->getSwagger(); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function boot(Application $app) |
46 | 46 | { |
47 | 47 | $app->get($app[self::SWAGGER_API_DOC_PATH], |
48 | - function (Application $app, Request $request) { |
|
48 | + function(Application $app, Request $request) { |
|
49 | 49 | /** @var SwaggerService $swagger */ |
50 | 50 | $swagger = $app[self::SWAGGER_SERVICE]; |
51 | 51 | $response = $swagger->getSwaggerResponse($app[self::SWAGGER_CACHE]); |