소스 검색

Rename variables

Gabriel Peixoto 6 년 전
부모
커밋
9f3922e511
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/Tools/ResponseStrategies/ResponseFileStrategy.php

+ 4 - 4
src/Tools/ResponseStrategies/ResponseFileStrategy.php

@@ -24,15 +24,15 @@ class ResponseFileStrategy
      */
     protected function getFileResponse(array $tags)
     {
-        $responseTags = array_filter($tags, function ($tag) {
+        $responseFileTags = array_filter($tags, function ($tag) {
             return $tag instanceof Tag && strtolower($tag->getName()) == 'responsefile';
         });
-        if (empty($responseTags)) {
+        if (empty($responseFileTags)) {
             return;
         }
-        $responseTag = array_first($responseTags);
+        $responseFileTag = array_first($responseFileTags);
 
-        $json = json_decode(file_get_contents(storage_path($responseTag->getContent()), true), true);
+        $json = json_decode(file_get_contents(storage_path($responseFileTag->getContent()), true), true);
 
         return response()->json($json);
     }