Skip to content

Commit

Permalink
use native json_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
pan85 committed Jan 5, 2017
1 parent ab0fd7f commit 2e936e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Method documentation example:
* @apiErr 403 | Unauthorized access
* @apiResp 200 | Whatever message is send from backend on sucess
*/
public function saveDesign($id, DesignRequest $request){}
public function index($id, DesignRequest $request){}

- @apiDesc - A description of the method
- @apiParam - There is no limit of parameters. Parameters can be required or not required. If **word required** is typed the parameter is marked as **required**. Check the example.
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"Despark\\Apidoc\\": "src/"
}
},
"minimum-stability": "stable",
"require": {
"laravel/framework": "5.1.*"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ApiDocGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ protected function writeToFile()
$fileDir = storage_path('appDoc');
\File::deleteDirectory($fileDir);
\File::makeDirectory($fileDir);
\File::put($fileDir.DIRECTORY_SEPARATOR.'resource.json', \GuzzleHttp\json_encode($this->swagger));
\File::put($fileDir.DIRECTORY_SEPARATOR.'resource.json', json_encode($this->swagger));
}


Expand Down

0 comments on commit 2e936e7

Please sign in to comment.