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