@@ 61-63 (lines=3) @@ | ||
58 | ||
59 | private function getAssetsPath() |
|
60 | { |
|
61 | if (file_exists(dirname(__DIR__, 4) . '/swagger-api/swagger-ui/dist/')) { |
|
62 | return dirname(__DIR__, 4) . '/swagger-api/swagger-ui/dist/'; |
|
63 | } |
|
64 | if (file_exists(dirname(__DIR__, 2) . '/vendor/swagger-api/swagger-ui/dist/')) { |
|
65 | return dirname(__DIR__, 2) . '/vendor/swagger-api/swagger-ui/dist/'; |
|
66 | } |
|
@@ 64-66 (lines=3) @@ | ||
61 | if (file_exists(dirname(__DIR__, 4) . '/swagger-api/swagger-ui/dist/')) { |
|
62 | return dirname(__DIR__, 4) . '/swagger-api/swagger-ui/dist/'; |
|
63 | } |
|
64 | if (file_exists(dirname(__DIR__, 2) . '/vendor/swagger-api/swagger-ui/dist/')) { |
|
65 | return dirname(__DIR__, 2) . '/vendor/swagger-api/swagger-ui/dist/'; |
|
66 | } |
|
67 | throw new \RuntimeException('Unable to find SwaggerUI assets path.'); |
|
68 | } |
|
69 | } |