Bläddra i källkod

fixed index description

tags/0.1.0
Robin Thoni 8 år sedan
förälder
incheckning
072c336f3d
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4
    2
      src/Doc/Business/LuDocBusiness.php

+ 4
- 2
src/Doc/Business/LuDocBusiness.php Visa fil

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

Laddar…
Avbryt
Spara