Skip to content

Commit 897744d

Browse files
committed
Update src/Illuminate/Filesystem/Filesystem.php
Cleaning up a minor typo and inconsistent reference to iterator.
1 parent fc98eaa commit 897744d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Filesystem/Filesystem.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function files($directory)
203203

204204
if ($glob === false) return array();
205205

206-
// To get the appropriate files, we'll simply glob the direectory and filter
206+
// To get the appropriate files, we'll simply glob the directory and filter
207207
// out any "files" that are not truly files so we do not end up with any
208208
// directories in our list, but only true files within the directory.
209209
return array_filter($glob, function($file)
@@ -288,7 +288,7 @@ public function deleteDirectory($directory, $preserve = false)
288288
{
289289
if ( ! $this->isDirectory($directory)) return;
290290

291-
$items = new \FilesystemIterator($directory);
291+
$items = new FilesystemIterator($directory);
292292

293293
foreach ($items as $item)
294294
{
@@ -323,4 +323,4 @@ public function cleanDirectory($directory)
323323
return $this->deleteDirectory($directory, true);
324324
}
325325

326-
}
326+
}

0 commit comments

Comments
 (0)