浏览代码

fixed index description

tags/0.1.0
Robin Thoni 9 年前
父节点
当前提交
072c336f3d
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      src/Doc/Business/LuDocBusiness.php

+ 4
- 2
src/Doc/Business/LuDocBusiness.php 查看文件

@@ -92,11 +92,13 @@ class LuDocBusiness
92 92
             foreach ($businesses as $business) {
93 93
                 $reflection = new ReflectionMethod($business->getBusinessClass(), $business->getBusinessMethod());
94 94
                 $description = $reflection->getDocComment();
95
-                $docParser = new DocBlock($description);
96
-                $description = $docParser->description;
97 95
                 if ($description === false) {
98 96
                     $description = "No description available";
99 97
                 }
98
+                else {
99
+                    $docParser = new DocBlock($description);
100
+                    $description = $docParser->description;
101
+                }
100 102
                 $business_tiwg["routes"][] = [
101 103
                     "method" => $business->getMethod(),
102 104
                     "url" => $business->getUrl(),

正在加载...
取消
保存