src/Lib/SwaggerTools.php
changed.
Showing 1 of 1 files from the diff.
@@ -66,14 +66,14 @@
Loading
66 | 66 | * Write swagger document to filesystem. |
|
67 | 67 | * |
|
68 | 68 | * @param string $path Full path to the json document including filename |
|
69 | - | * @param string $content Swagger content |
|
69 | + | * @param object $content Swagger content |
|
70 | 70 | * @throws \Cake\Http\Exception\InternalErrorException |
|
71 | 71 | * @return bool |
|
72 | 72 | */ |
|
73 | 73 | protected static function writeSwaggerDocumentToFile($path, $content) |
|
74 | 74 | { |
|
75 | 75 | $fh = new File($path, true); |
|
76 | - | if (!$fh->write($content)) { |
|
76 | + | if (!$fh->write(serialize($content))) { |
|
77 | 77 | throw new InternalErrorException('Error writing Swagger json document to filesystem'); |
|
78 | 78 | } |
|
79 | 79 |
Files | Complexity | Coverage |
---|---|---|
src | 32 | 100.00% |
Project Totals (5 files) | 32 | 100.00% |
140.5
7.3=.3 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.