Skip to content

Commit

Permalink
1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbaicat committed Feb 10, 2018
1 parent a854095 commit 243cb51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# php注释自动生成api文档 v1.5
# php注释自动生成api文档 v1.6
作者: [Dust](http://dust101.lofter.com)
----
```
Expand Down
1 change: 1 addition & 0 deletions extend/mumbaicat/makeapidoc/ApiDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ private function parse($data,$fileName)
}
}
preg_match_all('/\s+\*\s+@return\s+(.*?)\s+(.*?)\s+(.*?)\s/', $data, $matches);
$return['return'] = [];
if(empty($matches[1])){
$return['return'] = [];
}else{
Expand Down
1 change: 1 addition & 0 deletions src/ApiDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ private function parse($data,$fileName)
}
}
preg_match_all('/\s+\*\s+@return\s+(.*?)\s+(.*?)\s+(.*?)\s/', $data, $matches);
$return['return'] = [];
if(empty($matches[1])){
$return['return'] = [];
}else{
Expand Down

0 comments on commit 243cb51

Please sign in to comment.