@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | // Avoid "holes" in the keys of the filtered array, by using array_values on the filtered array |
| 51 | 51 | $responseFileTags = array_values( |
| 52 | - array_filter($tags, function ($tag) { |
|
| 52 | + array_filter($tags, function($tag) { |
|
| 53 | 53 | return $tag instanceof Tag && strtolower($tag->getName()) === 'responsefile'; |
| 54 | 54 | }) |
| 55 | 55 | ); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | return null; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - $responses = array_map(function (Tag $responseFileTag) { |
|
| 61 | + $responses = array_map(function(Tag $responseFileTag) { |
|
| 62 | 62 | preg_match('/^(\d{3})?\s?([\S]*[\s]*?)(\{.*\})?$/', $responseFileTag->getContent(), $result); |
| 63 | 63 | $relativeFilePath = trim($result[2]); |
| 64 | 64 | $filePath = storage_path($relativeFilePath); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $merged = array_merge(json_decode($content, true), json_decode($json, true)); |
| 72 | 72 | $content = json_encode($merged); |
| 73 | 73 | $contentWithReplacedTags = $this->replaceJsonFileTags($content); |
| 74 | - return ['content' => $contentWithReplacedTags, 'status' => (int)$status]; |
|
| 74 | + return ['content' => $contentWithReplacedTags, 'status' => (int) $status]; |
|
| 75 | 75 | }, $responseFileTags); |
| 76 | 76 | |
| 77 | 77 | return $responses; |