This commit is contained in:
Torsten 2018-08-07 10:42:11 +02:00
parent 98419bd18d
commit 8a69e45efa
4919 changed files with 28311 additions and 224136 deletions

4
pfosten/vendor/league/flysystem/src/Adapter/AbstractAdapter.php vendored Executable file → Normal file
View file

@ -7,7 +7,7 @@ use League\Flysystem\AdapterInterface;
abstract class AbstractAdapter implements AdapterInterface
{
/**
* @var string path prefix
* @var string|null path prefix
*/
protected $pathPrefix;
@ -38,7 +38,7 @@ abstract class AbstractAdapter implements AdapterInterface
/**
* Get the path prefix.
*
* @return string path prefix
* @return string|null path prefix or null if pathPrefix is empty
*/
public function getPathPrefix()
{

20
pfosten/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php vendored Executable file → Normal file
View file

@ -340,7 +340,7 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
while ($item = array_shift($listing)) {
if (preg_match('#^.*:$#', $item)) {
$base = trim($item, ':');
$base = preg_replace('~^\./*|:$~', '', $item);
continue;
}
@ -409,7 +409,7 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
list($permissions, /* $number */, /* $owner */, /* $group */, $size, /* $month */, /* $day */, /* $time*/, $name) = explode(' ', $item, 9);
$type = $this->detectType($permissions);
$path = empty($base) ? $name : $base . $this->separator . $name;
$path = $base === '' ? $name : $base . $this->separator . $name;
if ($type === 'dir') {
return compact('type', 'path');
@ -439,7 +439,7 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
}
list($date, $time, $size, $name) = explode(' ', $item, 4);
$path = empty($base) ? $name : $base . $this->separator . $name;
$path = $base === '' ? $name : $base . $this->separator . $name;
// Check for the correct date/time format
$format = strlen($date) === 8 ? 'm-d-yH:iA' : 'Y-m-dH:i';
@ -507,8 +507,8 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
return array_sum(str_split($part));
};
// get the sum of the groups
return array_sum(array_map($mapper, $parts));
// converts to decimal number
return octdec(implode('', array_map($mapper, $parts)));
}
/**
@ -521,11 +521,7 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
public function removeDotDirectories(array $list)
{
$filter = function ($line) {
if ( ! empty($line) && ! preg_match('#.* \.(\.)?$|^total#', $line)) {
return true;
}
return false;
return $line !== '' && ! preg_match('#.* \.(\.)?$|^total#', $line);
};
return array_filter($list, $filter);
@ -562,7 +558,9 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
*/
public function ensureDirectory($dirname)
{
if ( ! empty($dirname) && ! $this->has($dirname)) {
$dirname = (string) $dirname;
if ($dirname !== '' && ! $this->has($dirname)) {
$this->createDir($dirname, new Config());
}
}

2
pfosten/vendor/league/flysystem/src/Adapter/CanOverwriteFiles.php vendored Executable file → Normal file
View file

@ -7,4 +7,4 @@ namespace League\Flysystem\Adapter;
* Adapters that implement this interface let the Filesystem know that it files can be overwritten using the write
* functions and don't need the update function to be called. This can help improve performance when asserts are disabled.
*/
interface CanOverwriteFiles {}
interface CanOverwriteFiles {}

25
pfosten/vendor/league/flysystem/src/Adapter/Ftp.php vendored Executable file → Normal file
View file

@ -117,7 +117,7 @@ class Ftp extends AbstractFtpAdapter
/**
* @param bool $utf8
*/
public function setUtf8($utf8)
public function setUtf8($utf8)
{
$this->utf8 = (bool) $utf8;
}
@ -185,7 +185,7 @@ class Ftp extends AbstractFtpAdapter
$root = $this->getRoot();
$connection = $this->connection;
if (empty($root) === false && ! ftp_chdir($connection, $root)) {
if ($root && ! ftp_chdir($connection, $root)) {
throw new RuntimeException('Root is invalid or does not exist: ' . $this->getRoot());
}
@ -311,14 +311,14 @@ class Ftp extends AbstractFtpAdapter
public function deleteDir($dirname)
{
$connection = $this->getConnection();
$contents = array_reverse($this->listDirectoryContents($dirname));
$contents = array_reverse($this->listDirectoryContents($dirname, false));
foreach ($contents as $object) {
if ($object['type'] === 'file') {
if ( ! ftp_delete($connection, $object['path'])) {
return false;
}
} elseif ( ! ftp_rmdir($connection, $object['path'])) {
} elseif ( ! $this->deleteDir($object['path'])) {
return false;
}
}
@ -507,14 +507,13 @@ class Ftp extends AbstractFtpAdapter
*/
protected function listDirectoryContentsRecursive($directory)
{
$listing = $this->normalizeListing($this->ftpRawlist('-aln', $directory) ?: []);
$listing = $this->normalizeListing($this->ftpRawlist('-aln', $directory) ?: [], $directory);
$output = [];
foreach ($listing as $directory) {
$output[] = $directory;
if ($directory['type'] !== 'dir') continue;
$output = array_merge($output, $this->listDirectoryContentsRecursive($directory['path']));
foreach ($listing as $item) {
$output[] = $item;
if ($item['type'] !== 'dir') continue;
$output = array_merge($output, $this->listDirectoryContentsRecursive($item['path']));
}
return $output;
@ -529,7 +528,7 @@ class Ftp extends AbstractFtpAdapter
public function isConnected()
{
try {
return is_resource($this->connection) && ftp_rawlist($this->connection, '/') !== false;
return is_resource($this->connection) && ftp_rawlist($this->connection, $this->getRoot()) !== false;
} catch (ErrorException $e) {
if (strpos($e->getMessage(), 'ftp_rawlist') === false) {
throw $e;
@ -540,7 +539,7 @@ class Ftp extends AbstractFtpAdapter
}
/**
* @return null|string
* @return bool
*/
protected function isPureFtpdServer()
{
@ -560,7 +559,7 @@ class Ftp extends AbstractFtpAdapter
protected function ftpRawlist($options, $path)
{
$connection = $this->getConnection();
if ($this->isPureFtpd) {
$path = str_replace(' ', '\ ', $path);
}

6
pfosten/vendor/league/flysystem/src/Adapter/Ftpd.php vendored Executable file → Normal file
View file

@ -9,7 +9,11 @@ class Ftpd extends Ftp
*/
public function getMetadata($path)
{
if (empty($path) || ! ($object = ftp_raw($this->getConnection(), 'STAT ' . $path)) || count($object) < 3) {
if ($path === '') {
return ['type' => 'dir', 'path' => ''];
}
if ( ! ($object = ftp_raw($this->getConnection(), 'STAT ' . $path)) || count($object) < 3) {
return false;
}

22
pfosten/vendor/league/flysystem/src/Adapter/Local.php vendored Executable file → Normal file
View file

@ -160,13 +160,16 @@ class Local extends AbstractAdapter
return false;
}
if ($visibility = $config->get('visibility')) {
$this->setVisibility($path, $visibility);
}
$type = 'file';
return compact('type', 'path', 'visibility');
$result = compact('type', 'path');
if ($visibility = $config->get('visibility')) {
$this->setVisibility($path, $visibility);
$result['visibility'] = $visibility;
}
return $result;
}
/**
@ -194,7 +197,6 @@ class Local extends AbstractAdapter
public function update($path, $contents, Config $config)
{
$location = $this->applyPathPrefix($path);
$mimetype = Util::guessMimeType($path, $contents);
$size = file_put_contents($location, $contents, $this->writeFlags);
if ($size === false) {
@ -203,7 +205,13 @@ class Local extends AbstractAdapter
$type = 'file';
return compact('type', 'path', 'size', 'contents', 'mimetype');
$result = compact('type', 'path', 'size', 'contents');
if ($mimetype = Util::guessMimeType($path, $contents)) {
$result['mimetype'] = $mimetype;
}
return $result;
}
/**

0
pfosten/vendor/league/flysystem/src/Adapter/NullAdapter.php vendored Executable file → Normal file
View file

View file

View file

View file

View file

0
pfosten/vendor/league/flysystem/src/Adapter/SynologyFtp.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/AdapterInterface.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/Config.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/ConfigAwareTrait.php vendored Executable file → Normal file
View file

3
pfosten/vendor/league/flysystem/src/Directory.php vendored Executable file → Normal file
View file

@ -2,6 +2,9 @@
namespace League\Flysystem;
/**
* @deprecated
*/
class Directory extends Handler
{
/**

0
pfosten/vendor/league/flysystem/src/Exception.php vendored Executable file → Normal file
View file

17
pfosten/vendor/league/flysystem/src/File.php vendored Executable file → Normal file
View file

@ -2,6 +2,9 @@
namespace League\Flysystem;
/**
* @deprecated
*/
class File extends Handler
{
/**
@ -17,7 +20,7 @@ class File extends Handler
/**
* Read the file.
*
* @return string file contents
* @return string|false file contents
*/
public function read()
{
@ -27,7 +30,7 @@ class File extends Handler
/**
* Read the file as a stream.
*
* @return resource file stream
* @return resource|false file stream
*/
public function readStream()
{
@ -143,7 +146,7 @@ class File extends Handler
/**
* Get the file's timestamp.
*
* @return int unix timestamp
* @return string|false The timestamp or false on failure.
*/
public function getTimestamp()
{
@ -153,7 +156,7 @@ class File extends Handler
/**
* Get the file's mimetype.
*
* @return string mimetime
* @return string|false The file mime-type or false on failure.
*/
public function getMimetype()
{
@ -163,7 +166,7 @@ class File extends Handler
/**
* Get the file's visibility.
*
* @return string visibility
* @return string|false The visibility (public|private) or false on failure.
*/
public function getVisibility()
{
@ -173,7 +176,7 @@ class File extends Handler
/**
* Get the file's metadata.
*
* @return array
* @return array|false The file metadata or false on failure.
*/
public function getMetadata()
{
@ -183,7 +186,7 @@ class File extends Handler
/**
* Get the file size.
*
* @return int file size
* @return int|false The file size or false on failure.
*/
public function getSize()
{

0
pfosten/vendor/league/flysystem/src/FileExistsException.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/FileNotFoundException.php vendored Executable file → Normal file
View file

14
pfosten/vendor/league/flysystem/src/Filesystem.php vendored Executable file → Normal file
View file

@ -95,7 +95,7 @@ class Filesystem implements FilesystemInterface
$path = Util::normalizePath($path);
$config = $this->prepareConfig($config);
if ( ! $this->adapter instanceof CanOverwriteFiles && $this->has($path)) {
if ( ! $this->getAdapter() instanceof CanOverwriteFiles && $this->has($path)) {
return (bool) $this->getAdapter()->update($path, $contents, $config);
}
@ -115,7 +115,7 @@ class Filesystem implements FilesystemInterface
$config = $this->prepareConfig($config);
Util::rewindStream($resource);
if ( ! $this->adapter instanceof CanOverwriteFiles &&$this->has($path)) {
if ( ! $this->getAdapter() instanceof CanOverwriteFiles &&$this->has($path)) {
return (bool) $this->getAdapter()->updateStream($path, $resource, $config);
}
@ -281,7 +281,7 @@ class Filesystem implements FilesystemInterface
$path = Util::normalizePath($path);
$this->assertPresent($path);
if ( ! $object = $this->getAdapter()->getMimetype($path)) {
if (( ! $object = $this->getAdapter()->getMimetype($path)) || ! array_key_exists('mimetype', $object)) {
return false;
}
@ -296,7 +296,7 @@ class Filesystem implements FilesystemInterface
$path = Util::normalizePath($path);
$this->assertPresent($path);
if ( ! $object = $this->getAdapter()->getTimestamp($path)) {
if (( ! $object = $this->getAdapter()->getTimestamp($path)) || ! array_key_exists('timestamp', $object)) {
return false;
}
@ -311,7 +311,7 @@ class Filesystem implements FilesystemInterface
$path = Util::normalizePath($path);
$this->assertPresent($path);
if (($object = $this->getAdapter()->getVisibility($path)) === false) {
if (( ! $object = $this->getAdapter()->getVisibility($path)) || ! array_key_exists('visibility', $object)) {
return false;
}
@ -324,8 +324,9 @@ class Filesystem implements FilesystemInterface
public function getSize($path)
{
$path = Util::normalizePath($path);
$this->assertPresent($path);
if (($object = $this->getAdapter()->getSize($path)) === false || ! isset($object['size'])) {
if (( ! $object = $this->getAdapter()->getSize($path)) || ! array_key_exists('size', $object)) {
return false;
}
@ -338,6 +339,7 @@ class Filesystem implements FilesystemInterface
public function setVisibility($path, $visibility)
{
$path = Util::normalizePath($path);
$this->assertPresent($path);
return (bool) $this->getAdapter()->setVisibility($path, $visibility);
}

14
pfosten/vendor/league/flysystem/src/FilesystemInterface.php vendored Executable file → Normal file
View file

@ -2,6 +2,8 @@
namespace League\Flysystem;
use InvalidArgumentException;
interface FilesystemInterface
{
/**
@ -61,6 +63,8 @@ interface FilesystemInterface
*
* @param string $path The path to the file.
*
* @throws FileNotFoundException
*
* @return int|false The file size or false on failure.
*/
public function getSize($path);
@ -118,7 +122,7 @@ interface FilesystemInterface
* @param resource $resource The file handle.
* @param array $config An optional configuration array.
*
* @throws \InvalidArgumentException If $resource is not a file handle.
* @throws InvalidArgumentException If $resource is not a file handle.
* @throws FileExistsException
*
* @return bool True on success, false on failure.
@ -145,7 +149,7 @@ interface FilesystemInterface
* @param resource $resource The file handle.
* @param array $config An optional configuration array.
*
* @throws \InvalidArgumentException If $resource is not a file handle.
* @throws InvalidArgumentException If $resource is not a file handle.
* @throws FileNotFoundException
*
* @return bool True on success, false on failure.
@ -216,6 +220,8 @@ interface FilesystemInterface
* @param string $path The path to the file.
* @param string $visibility One of 'public' or 'private'.
*
* @throws FileNotFoundException
*
* @return bool True on success, false on failure.
*/
public function setVisibility($path, $visibility);
@ -238,7 +244,7 @@ interface FilesystemInterface
* @param resource $resource The file handle.
* @param array $config An optional configuration array.
*
* @throws \InvalidArgumentException Thrown if $resource is not a resource.
* @throws InvalidArgumentException Thrown if $resource is not a resource.
*
* @return bool True on success, false on failure.
*/
@ -258,6 +264,8 @@ interface FilesystemInterface
/**
* Get a file/directory handler.
*
* @deprecated
*
* @param string $path The path to the file.
* @param Handler $handler An optional existing handler to populate.
*

0
pfosten/vendor/league/flysystem/src/FilesystemNotFoundException.php vendored Executable file → Normal file
View file

3
pfosten/vendor/league/flysystem/src/Handler.php vendored Executable file → Normal file
View file

@ -4,6 +4,9 @@ namespace League\Flysystem;
use BadMethodCallException;
/**
* @deprecated
*/
abstract class Handler
{
/**

16
pfosten/vendor/league/flysystem/src/MountManager.php vendored Executable file → Normal file
View file

@ -32,7 +32,7 @@ use League\Flysystem\Plugin\PluginNotFoundException;
* @method array listPaths($directory = '', $recursive = false)
* @method array getWithMetadata($path, array $metadata)
* @method string|false getMimetype($path)
* @method string|false getTimestamp($path)
* @method int|false getTimestamp($path)
* @method string|false getVisibility($path)
* @method int|false getSize($path);
* @method bool setVisibility($path, $visibility)
@ -253,6 +253,20 @@ class MountManager
*/
public function move($from, $to, array $config = [])
{
list($prefixFrom, $pathFrom) = $this->getPrefixAndPath($from);
list($prefixTo, $pathTo) = $this->getPrefixAndPath($to);
if ($prefixFrom === $prefixTo) {
$filesystem = $this->getFilesystem($prefixFrom);
$renamed = $filesystem->rename($pathFrom, $pathTo);
if ($renamed && isset($config['visibility'])) {
return $filesystem->setVisibility($pathTo, $config['visibility']);
}
return $renamed;
}
$copied = $this->copy($from, $to, $config);
if ($copied) {

0
pfosten/vendor/league/flysystem/src/NotSupportedException.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/Plugin/AbstractPlugin.php vendored Executable file → Normal file
View file

2
pfosten/vendor/league/flysystem/src/Plugin/EmptyDir.php vendored Executable file → Normal file
View file

@ -17,7 +17,7 @@ class EmptyDir extends AbstractPlugin
/**
* Empty a directory's contents.
*
* @param $dirname
* @param string $dirname
*/
public function handle($dirname)
{

2
pfosten/vendor/league/flysystem/src/Plugin/ForcedCopy.php vendored Executable file → Normal file
View file

@ -2,6 +2,7 @@
namespace League\Flysystem\Plugin;
use League\Flysystem\FileExistsException;
use League\Flysystem\FileNotFoundException;
class ForcedCopy extends AbstractPlugin
@ -20,6 +21,7 @@ class ForcedCopy extends AbstractPlugin
* @param string $path Path to the existing file.
* @param string $newpath The new path of the file.
*
* @throws FileExistsException
* @throws FileNotFoundException Thrown if $path does not exist.
*
* @return bool True on success, false on failure.

2
pfosten/vendor/league/flysystem/src/Plugin/ForcedRename.php vendored Executable file → Normal file
View file

@ -2,6 +2,7 @@
namespace League\Flysystem\Plugin;
use League\Flysystem\FileExistsException;
use League\Flysystem\FileNotFoundException;
class ForcedRename extends AbstractPlugin
@ -21,6 +22,7 @@ class ForcedRename extends AbstractPlugin
* @param string $newpath The new path of the file.
*
* @throws FileNotFoundException Thrown if $path does not exist.
* @throws FileExistsException
*
* @return bool True on success, false on failure.
*/

2
pfosten/vendor/league/flysystem/src/Plugin/GetWithMetadata.php vendored Executable file → Normal file
View file

@ -3,6 +3,7 @@
namespace League\Flysystem\Plugin;
use InvalidArgumentException;
use League\Flysystem\FileNotFoundException;
class GetWithMetadata extends AbstractPlugin
{
@ -23,6 +24,7 @@ class GetWithMetadata extends AbstractPlugin
* @param array $metadata metadata keys
*
* @throws InvalidArgumentException
* @throws FileNotFoundException
*
* @return array|false metadata
*/

0
pfosten/vendor/league/flysystem/src/Plugin/ListFiles.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/Plugin/ListPaths.php vendored Executable file → Normal file
View file

4
pfosten/vendor/league/flysystem/src/Plugin/ListWith.php vendored Executable file → Normal file
View file

@ -40,8 +40,8 @@ class ListWith extends AbstractPlugin
/**
* Get a meta-data value by key name.
*
* @param array $object
* @param $key
* @param array $object
* @param string $key
*
* @return array
*/

0
pfosten/vendor/league/flysystem/src/Plugin/PluggableTrait.php vendored Executable file → Normal file
View file

View file

0
pfosten/vendor/league/flysystem/src/PluginInterface.php vendored Executable file → Normal file
View file

2
pfosten/vendor/league/flysystem/src/ReadInterface.php vendored Executable file → Normal file
View file

@ -69,7 +69,7 @@ interface ReadInterface
public function getMimetype($path);
/**
* Get the timestamp of a file.
* Get the last modified time of a file as a timestamp.
*
* @param string $path
*

0
pfosten/vendor/league/flysystem/src/RootViolationException.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/SafeStorage.php vendored Executable file → Normal file
View file

0
pfosten/vendor/league/flysystem/src/UnreadableFileException.php vendored Executable file → Normal file
View file

56
pfosten/vendor/league/flysystem/src/Util.php vendored Executable file → Normal file
View file

@ -16,11 +16,17 @@ class Util
*/
public static function pathinfo($path)
{
$pathinfo = pathinfo($path) + compact('path');
$pathinfo['dirname'] = array_key_exists('dirname', $pathinfo)
? static::normalizeDirname($pathinfo['dirname']) : '';
$pathinfo = compact('path');
return $pathinfo;
if ('' !== $dirname = dirname($path)) {
$pathinfo['dirname'] = static::normalizeDirname($dirname);
}
$pathinfo['basename'] = static::basename($path);
$pathinfo += pathinfo($pathinfo['basename']);
return $pathinfo + ['dirname' => ''];
}
/**
@ -198,11 +204,7 @@ class Util
$listedDirectories = [];
foreach ($listing as $object) {
list($directories, $listedDirectories) = static::emulateObjectDirectories(
$object,
$directories,
$listedDirectories
);
list($directories, $listedDirectories) = static::emulateObjectDirectories($object, $directories, $listedDirectories);
}
$directories = array_diff(array_unique($directories), array_unique($listedDirectories));
@ -307,4 +309,40 @@ class Util
return [$directories, $listedDirectories];
}
/**
* Returns the trailing name component of the path.
*
* @param string $path
*
* @return string
*/
private static function basename($path)
{
$separators = DIRECTORY_SEPARATOR === '/' ? '/' : '\/';
$path = rtrim($path, $separators);
$basename = preg_replace('#.*?([^' . preg_quote($separators, '#') . ']+$)#', '$1', $path);
if (DIRECTORY_SEPARATOR === '/') {
return $basename;
}
// @codeCoverageIgnoreStart
// Extra Windows path munging. This is tested via AppVeyor, but code
// coverage is not reported.
// Handle relative paths with drive letters. c:file.txt.
while (preg_match('#^[a-zA-Z]{1}:[^\\\/]#', $basename)) {
$basename = substr($basename, 2);
}
// Remove colon for standalone drive letter names.
if (preg_match('#^[a-zA-Z]{1}:$#', $basename)) {
$basename = rtrim($basename, ':');
}
return $basename;
// @codeCoverageIgnoreEnd
}
}

13
pfosten/vendor/league/flysystem/src/Util/ContentListingFormatter.php vendored Executable file → Normal file
View file

@ -75,7 +75,7 @@ class ContentListingFormatter
/**
* Check if the entry resides within the parent directory.
*
* @param $entry
* @param array $entry
*
* @return bool
*/
@ -91,7 +91,7 @@ class ContentListingFormatter
/**
* Check if the entry is a direct child of the directory.
*
* @param $entry
* @param array $entry
*
* @return bool
*/
@ -107,12 +107,9 @@ class ContentListingFormatter
*/
private function sortListing(array $listing)
{
usort(
$listing,
function ($a, $b) {
return strcasecmp($a['path'], $b['path']);
}
);
usort($listing, function ($a, $b) {
return strcasecmp($a['path'], $b['path']);
});
return $listing;
}

28
pfosten/vendor/league/flysystem/src/Util/MimeType.php vendored Executable file → Normal file
View file

@ -2,7 +2,7 @@
namespace League\Flysystem\Util;
use Finfo;
use finfo;
use ErrorException;
/**
@ -19,17 +19,18 @@ class MimeType
*/
public static function detectByContent($content)
{
if ( ! class_exists('Finfo') || ! is_string($content)) {
return;
if ( ! class_exists('finfo') || ! is_string($content)) {
return null;
}
try {
$finfo = new Finfo(FILEINFO_MIME_TYPE);
$finfo = new finfo(FILEINFO_MIME_TYPE);
return $finfo->buffer($content) ?: null;
// @codeCoverageIgnoreStart
} catch( ErrorException $e ) {
// This is caused by an array to string conversion error.
}
}
} // @codeCoverageIgnoreEnd
/**
* Detects MIME Type based on file extension.
@ -56,7 +57,7 @@ class MimeType
/**
* @param string $filename
*
* @return string
* @return string|null MIME Type or NULL if no extension detected
*/
public static function detectByFilename($filename)
{
@ -153,6 +154,8 @@ class MimeType
'rtf' => 'text/rtf',
'xml' => 'application/xml',
'xsl' => 'application/xml',
'dmn' => 'application/octet-stream',
'bpmn' => 'application/octet-stream',
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
@ -162,6 +165,7 @@ class MimeType
'movie' => 'video/x-sgi-movie',
'doc' => 'application/msword',
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'docm' => 'application/vnd.ms-word.template.macroEnabled.12',
'dot' => 'application/msword',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
@ -211,6 +215,18 @@ class MimeType
'cdr' => 'application/cdr',
'wma' => 'audio/x-ms-wma',
'jar' => 'application/java-archive',
'tex' => 'application/x-tex',
'latex' => 'application/x-latex',
'odt' => 'application/vnd.oasis.opendocument.text',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
'odp' => 'application/vnd.oasis.opendocument.presentation',
'odg' => 'application/vnd.oasis.opendocument.graphics',
'odc' => 'application/vnd.oasis.opendocument.chart',
'odf' => 'application/vnd.oasis.opendocument.formula',
'odi' => 'application/vnd.oasis.opendocument.image',
'odm' => 'application/vnd.oasis.opendocument.text-master',
'odb' => 'application/vnd.oasis.opendocument.database',
'ott' => 'application/vnd.oasis.opendocument.text-template',
];
}
}

2
pfosten/vendor/league/flysystem/src/Util/StreamHasher.php vendored Executable file → Normal file
View file

@ -20,7 +20,7 @@ class StreamHasher
}
/**
* @param $resource
* @param resource $resource
*
* @return string
*/