]> BookStack Code Mirror - bookstack/blobdiff - app/Api/ApiDocsGenerator.php
Added testing coverage for tag index
[bookstack] / app / Api / ApiDocsGenerator.php
index 3aabfb4cc9fd5eb37770f7c6994f104f508dc97d..d130304de0327ede3cdbdcd1f8ebf81350af64d1 100644 (file)
@@ -28,7 +28,7 @@ class ApiDocsGenerator
         if (Cache::has($cacheKey) && config('app.env') === 'production') {
             $docs = Cache::get($cacheKey);
         } else {
-            $docs = (new static())->generate();
+            $docs = (new ApiDocsGenerator())->generate();
             Cache::put($cacheKey, $docs, 60 * 24);
         }
 
@@ -95,6 +95,7 @@ class ApiDocsGenerator
         }
 
         $rules = $class->getValdationRules()[$methodName] ?? [];
+
         return empty($rules) ? null : $rules;
     }