Browse Source

fixed index description

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
072c336f3d
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/Doc/Business/LuDocBusiness.php

+ 4
- 2
src/Doc/Business/LuDocBusiness.php View File

@@ -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(),

Loading…
Cancel
Save