updated dependencies

This commit is contained in:
2019-12-10 05:37:33 +00:00
parent 525b34d28c
commit 90c6c629d3
1123 changed files with 7869 additions and 5694 deletions

View File

@@ -287,6 +287,8 @@ class Local extends AbstractAdapter
$result[] = $this->normalizeFileInfo($file);
}
unset($iterator);
return array_filter($result);
}
@@ -412,6 +414,8 @@ class Local extends AbstractAdapter
$this->deleteFileInfoObject($file);
}
unset($contents);
return rmdir($location);
}

View File

@@ -365,7 +365,7 @@ class Filesystem implements FilesystemInterface
if ( ! $handler) {
$metadata = $this->getMetadata($path);
$handler = $metadata['type'] === 'file' ? new File($this, $path) : new Directory($this, $path);
$handler = ($metadata && $metadata['type'] === 'file') ? new File($this, $path) : new Directory($this, $path);
}
$handler->setPath($path);

View File

@@ -60,7 +60,7 @@ abstract class Handler
{
$metadata = $this->filesystem->getMetadata($this->path);
return $metadata['type'];
return $metadata ? $metadata['type'] : 'dir';
}
/**

View File

@@ -291,13 +291,13 @@ class Util
$listedDirectories[] = $object['path'];
}
if (empty($object['dirname'])) {
if ( ! isset($object['dirname']) || trim($object['dirname']) === '') {
return [$directories, $listedDirectories];
}
$parent = $object['dirname'];
while ( ! empty($parent) && ! in_array($parent, $directories)) {
while (isset($parent) && trim($parent) !== '' && ! in_array($parent, $directories)) {
$directories[] = $parent;
$parent = static::dirname($parent);
}

View File

@@ -120,7 +120,7 @@ class MimeType
'docm' => 'application/vnd.ms-word.template.macroEnabled.12',
'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
'dot' => 'application/msword',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',