ソースを参照

Merge branch 'master' of github.com:mpociot/laravel-apidoc-generator

Marcel Pociot 8 年 前
コミット
b2d17bbae8

+ 5 - 2
src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php

@@ -274,7 +274,8 @@ class GenerateDocumentation extends Command
 
     /**
      * @param $route
-     * @return boolean
+     *
+     * @return bool
      */
     private function isRouteVisibleForDocumentation($route)
     {
@@ -283,12 +284,14 @@ class GenerateDocumentation extends Command
         $comment = $reflection->getMethod($method)->getDocComment();
         if ($comment) {
             $phpdoc = new DocBlock($comment);
+
             return collect($phpdoc->getTags())
-                ->filter(function($tag) use ($route){
+                ->filter(function ($tag) use ($route) {
                     return $tag->getName() === 'hideFromAPIDocumentation';
                 })
                 ->isEmpty();
         }
+
         return true;
     }
 

+ 0 - 1
tests/Fixtures/TestController.php

@@ -59,6 +59,5 @@ class TestController extends Controller
      */
     public function skip()
     {
-        
     }
 }