@@ -21,18 +21,18 @@ discard block |
||
21 | 21 | |
22 | 22 | $app[self::SWAGGER_CONFIG] = $app::share(function (Application $app) { |
23 | 23 | return new SwaggerConfig( |
24 | - $app[self::SWAGGER_SERVICE_PATH], |
|
25 | - $app[self::SWAGGER_ANALYSER], |
|
26 | - $app[self::SWAGGER_ANALYSIS], |
|
27 | - $app[self::SWAGGER_PROCESSORS], |
|
28 | - $app[self::SWAGGER_EXCLUDE_PATH] |
|
24 | + $app[self::SWAGGER_SERVICE_PATH], |
|
25 | + $app[self::SWAGGER_ANALYSER], |
|
26 | + $app[self::SWAGGER_ANALYSIS], |
|
27 | + $app[self::SWAGGER_PROCESSORS], |
|
28 | + $app[self::SWAGGER_EXCLUDE_PATH] |
|
29 | 29 | ); |
30 | 30 | }); |
31 | 31 | |
32 | 32 | $app[self::SWAGGER_SERVICE] = $app::share(function (Application $app) { |
33 | 33 | return new SwaggerService( |
34 | - $app[self::SWAGGER_CONFIG], |
|
35 | - $app[self::SWAGGER_CACHE] |
|
34 | + $app[self::SWAGGER_CONFIG], |
|
35 | + $app[self::SWAGGER_CACHE] |
|
36 | 36 | ); |
37 | 37 | }); |
38 | 38 | |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | public function boot(Application $app) |
48 | 48 | { |
49 | 49 | $app->get( |
50 | - $app[self::SWAGGER_API_DOC_PATH], |
|
51 | - [$app[self::SWAGGER_SERVICE], 'getSwaggerResponse'] |
|
50 | + $app[self::SWAGGER_API_DOC_PATH], |
|
51 | + [$app[self::SWAGGER_SERVICE], 'getSwaggerResponse'] |
|
52 | 52 | ); |
53 | 53 | } |
54 | 54 | } |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | $swagger = $this->getSwagger(); |
47 | 47 | |
48 | 48 | $response = Response::create( |
49 | - $swagger, |
|
50 | - Response::HTTP_OK, |
|
51 | - ['Content-Type' => 'application/json'] |
|
49 | + $swagger, |
|
50 | + Response::HTTP_OK, |
|
51 | + ['Content-Type' => 'application/json'] |
|
52 | 52 | ); |
53 | 53 | $response->setCache($this->cacheConfig); |
54 | 54 | $response->setEtag(md5($swagger)); |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | public function getSwagger() |
64 | 64 | { |
65 | 65 | $swagger = \Swagger\scan( |
66 | - $this->config->getBasePath(), |
|
67 | - $this->config->getScanOptions() |
|
66 | + $this->config->getBasePath(), |
|
67 | + $this->config->getScanOptions() |
|
68 | 68 | ); |
69 | 69 | |
70 | 70 | return $swagger; |