Jelajahi Sumber

Rename variables

Gabriel Peixoto 6 tahun lalu
induk
melakukan
9f3922e511
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  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);
     }