瀏覽代碼

Code cleanup

shalvah 5 年之前
父節點
當前提交
448c224e03
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/Commands/GenerateDocumentation.php
  2. 1 1
      tests/GenerateDocumentationTest.php

+ 1 - 1
src/Commands/GenerateDocumentation.php

@@ -276,7 +276,7 @@ class GenerateDocumentation extends Command
             $phpdoc = new DocBlock($comment);
 
             return collect($phpdoc->getTags())
-                ->filter(function ($tag) use ($action) {
+                ->filter(function ($tag) {
                     return $tag->getName() === 'hideFromAPIDocumentation';
                 })
                 ->isEmpty();

+ 1 - 1
tests/GenerateDocumentationTest.php

@@ -29,7 +29,7 @@ class GenerateDocumentationTest extends TestCase
 
     public function tearDown()
     {
-        //Utils::deleteDirectoryAndContents('/public/docs');
+        Utils::deleteDirectoryAndContents('/public/docs');
     }
 
     /**