Skip to content

Commit 7405284

Browse files
committed
Update Moonlight.php
1 parent ea4c653 commit 7405284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Moonlight.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ protected static function copyFiles(array $files, bool $force = false)
186186
*/
187187
protected static function ensureFileDirectoryExists(string $file)
188188
{
189-
if (! $diretory = Str::beforeLast($file, '/')) {
189+
if (! $directory = Str::beforeLast($file, '/')) {
190190
return;
191191
}
192192

193-
if (! is_dir($diretory)) {
194-
mkdir($diretory, 0755, true);
193+
if (! is_dir($directory)) {
194+
mkdir($directory, 0755, true);
195195
}
196196
}
197197

0 commit comments

Comments
 (0)