Aggiornato Composer
This commit is contained in:
0
vendor/league/commonmark/bin/commonmark
vendored
Executable file → Normal file
0
vendor/league/commonmark/bin/commonmark
vendored
Executable file → Normal file
4
vendor/league/flysystem/src/Adapter/Ftp.php
vendored
4
vendor/league/flysystem/src/Adapter/Ftp.php
vendored
@@ -572,9 +572,9 @@ class Ftp extends AbstractFtpAdapter
|
||||
|
||||
private function getRawExecResponseCode($command)
|
||||
{
|
||||
$response = @ftp_raw($this->connection, trim($command));
|
||||
$response = @ftp_raw($this->connection, trim($command)) ?: [];
|
||||
|
||||
return (int) preg_replace('/\D/', '', implode(' ', $response));
|
||||
return (int) preg_replace('/\D/', '', implode(' ', (array) $response));
|
||||
}
|
||||
|
||||
private function hasFtpConnection(): bool
|
||||
|
||||
28
vendor/league/mime-type-detection/CHANGELOG.md
vendored
28
vendor/league/mime-type-detection/CHANGELOG.md
vendored
@@ -1,5 +1,33 @@
|
||||
# Changelog
|
||||
|
||||
## 1.15.0 - 2024-01-28
|
||||
|
||||
- Updated lookup
|
||||
|
||||
## 1.14.0 - 2022-10-17
|
||||
|
||||
### Updated
|
||||
|
||||
- Updated lookup
|
||||
|
||||
## 1.13.0 - 2023-08-05
|
||||
|
||||
### Added
|
||||
|
||||
- A reverse lookup mechanism to fetch one or all extensions for a given mimetype
|
||||
|
||||
## 1.12.0 - 2023-08-03
|
||||
|
||||
### Updated
|
||||
|
||||
- Updated lookup
|
||||
|
||||
## 1.11.0 - 2023-04-17
|
||||
|
||||
### Updated
|
||||
|
||||
- Updated lookup
|
||||
|
||||
## 1.10.0 - 2022-04-11
|
||||
|
||||
### Fixed
|
||||
|
||||
2
vendor/league/mime-type-detection/LICENSE
vendored
2
vendor/league/mime-type-detection/LICENSE
vendored
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2013-2022 Frank de Jonge
|
||||
Copyright (c) 2013-2023 Frank de Jonge
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
"phpstan": "vendor/bin/phpstan analyse -l 6 src"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2 || ^8.0",
|
||||
"php": "^7.4 || ^8.0",
|
||||
"ext-fileinfo": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^8.5.8 || ^9.3",
|
||||
"phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0",
|
||||
"phpstan/phpstan": "^0.12.68",
|
||||
"friendsofphp/php-cs-fixer": "^3.2"
|
||||
},
|
||||
@@ -28,7 +28,7 @@
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.2.0"
|
||||
"php": "7.4.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace League\MimeTypeDetection;
|
||||
|
||||
use const PATHINFO_EXTENSION;
|
||||
|
||||
class ExtensionMimeTypeDetector implements MimeTypeDetector
|
||||
class ExtensionMimeTypeDetector implements MimeTypeDetector, ExtensionLookup
|
||||
{
|
||||
/**
|
||||
* @var ExtensionToMimeTypeMap
|
||||
@@ -39,4 +39,18 @@ class ExtensionMimeTypeDetector implements MimeTypeDetector
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function lookupExtension(string $mimetype): ?string
|
||||
{
|
||||
return $this->extensions instanceof ExtensionLookup
|
||||
? $this->extensions->lookupExtension($mimetype)
|
||||
: null;
|
||||
}
|
||||
|
||||
public function lookupAllExtensions(string $mimetype): array
|
||||
{
|
||||
return $this->extensions instanceof ExtensionLookup
|
||||
? $this->extensions->lookupAllExtensions($mimetype)
|
||||
: [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ use const FILEINFO_MIME_TYPE;
|
||||
use const PATHINFO_EXTENSION;
|
||||
use finfo;
|
||||
|
||||
class FinfoMimeTypeDetector implements MimeTypeDetector
|
||||
class FinfoMimeTypeDetector implements MimeTypeDetector, ExtensionLookup
|
||||
{
|
||||
private const INCONCLUSIVE_MIME_TYPES = [
|
||||
'application/x-empty',
|
||||
@@ -89,4 +89,18 @@ class FinfoMimeTypeDetector implements MimeTypeDetector
|
||||
|
||||
return (string) substr($contents, 0, $this->bufferSampleSize);
|
||||
}
|
||||
|
||||
public function lookupExtension(string $mimetype): ?string
|
||||
{
|
||||
return $this->extensionMap instanceof ExtensionLookup
|
||||
? $this->extensionMap->lookupExtension($mimetype)
|
||||
: null;
|
||||
}
|
||||
|
||||
public function lookupAllExtensions(string $mimetype): array
|
||||
{
|
||||
return $this->extensionMap instanceof ExtensionLookup
|
||||
? $this->extensionMap->lookupAllExtensions($mimetype)
|
||||
: [];
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user