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

Loading…
Cancel
Save