@@ -64,7 +64,7 @@ |
||
64 | 64 | $content = $result[2] ? file_get_contents($filePath, true) : '{}'; |
65 | 65 | |
66 | 66 | if (empty($result[3]) { |
67 | - return ['content' => $content, 'status' => (int) $status]; |
|
67 | + return ['content' => $content, 'status' => (int) $status]; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $json = str_replace("'", '"', $result[3]); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | // Avoid "holes" in the keys of the filtered array, by using array_values on the filtered array |
46 | 46 | $responseFileTags = array_values( |
47 | - array_filter($tags, function ($tag) { |
|
47 | + array_filter($tags, function($tag) { |
|
48 | 48 | return $tag instanceof Tag && strtolower($tag->getName()) === 'responsefile'; |
49 | 49 | }) |
50 | 50 | ); |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | return null; |
54 | 54 | } |
55 | 55 | |
56 | - $responses = array_map(function (Tag $responseFileTag) { |
|
56 | + $responses = array_map(function(Tag $responseFileTag) { |
|
57 | 57 | preg_match('/^(\d{3})?\s?([\S]*[\s]*?)(\{.*\})?$/', $responseFileTag->getContent(), $result); |
58 | 58 | $relativeFilePath = trim($result[2]); |
59 | 59 | $filePath = storage_path($relativeFilePath); |
60 | - if (! file_exists($filePath)) { |
|
60 | + if (!file_exists($filePath)) { |
|
61 | 61 | throw new \Exception('@responseFile ' . $relativeFilePath . ' does not exist'); |
62 | 62 | } |
63 | 63 | $status = $result[1] ?: 200; |