Skip to content

Commit 83e9442

Browse files
committed
change permissions for snapshot directory
1 parent ea1c4bd commit 83e9442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Macros/PestHttpRecorder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function handle(Request $request)
5757

5858
$urlInfo = parse_url($request->url());
5959

60-
//create specific filename for storing snapshots
60+
// create specific filename for storing snapshots
6161
$method = Str::lower($request->method());
6262
$name = Str::slug(Str::replace('/', '-', $urlInfo['path']));
6363
$query = Str::slug(Str::replace('&', '_', Str::replace('=', '-', $urlInfo['query'])));
@@ -67,7 +67,7 @@ public function handle(Request $request)
6767
$filePath = "{$directoryPath}/{$fileName}";
6868

6969
if ($forceRecording || ! File::exists($filePath)) {
70-
File::makeDirectory($directoryPath, 0777, true, true);
70+
File::makeDirectory($directoryPath, 0744, true, true);
7171

7272
$client = new Client();
7373
$response = $client->request($request->method(), $request->url(), [

0 commit comments

Comments
 (0)