소스 검색

Add descriptive comment

Shalvah 5 년 전
부모
커밋
2c6bf92ddd
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Extracting/Generator.php

+ 2 - 0
src/Extracting/Generator.php

@@ -45,6 +45,8 @@ class Generator
     {
         $methods = $route->methods();
 
+        // Laravel adds an automatic "HEAD" endpoint for each GET request, so we'll strip that out,
+        // but not if there's only one method (means it was intentional)
         if (count($methods) === 1) {
             return $methods;
         }