mirror of https://github.com/nextcloud/photos
Rationalize dependencies
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
db51bc4f61
commit
ea4f4599f8
|
@ -9,7 +9,7 @@
|
|||
"bamarni/composer-bin-plugin": true
|
||||
},
|
||||
"platform": {
|
||||
"php": "8.0"
|
||||
"php": "8.0.2"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -21,21 +21,22 @@
|
|||
"cs:fix": "php-cs-fixer fix",
|
||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
|
||||
"psalm": "psalm --threads=1",
|
||||
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
|
||||
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
|
||||
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
|
||||
"psalm": "psalm.phar --threads=1",
|
||||
"psalm:update-baseline": "psalm.phar --threads=1 --update-baseline",
|
||||
"psalm:clear": "psalm.phar --clear-cache && psalm --clear-global-cache",
|
||||
"psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
|
||||
"test:unit": "echo 'Only testing installation of the app'"
|
||||
},
|
||||
"require-dev": {
|
||||
"bamarni/composer-bin-plugin": "^1.8",
|
||||
"nextcloud/coding-standard": "1.1.1",
|
||||
"nextcloud/ocp": "dev-master",
|
||||
"phpunit/phpunit": "^9",
|
||||
"sabre/dav": "^4.2.1",
|
||||
"vimeo/psalm": "^4.22"
|
||||
"nextcloud/ocp": "dev-master",
|
||||
"psalm/phar": "^5.17",
|
||||
"symfony/console": "5.4.24"
|
||||
},
|
||||
"require": {
|
||||
"hexogen/kdtree": "^0.2.5"
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -111,6 +111,6 @@ class Application extends App implements IBootstrap {
|
|||
public function boot(IBootContext $context): void {
|
||||
/** @var IFilesMetadataManager $metadataManager */
|
||||
$metadataManager = $context->getServerContainer()->get(IFilesMetadataManager::class);
|
||||
$metadataManager->initMetadata('photos-original_date_time', IMetadataValueWrapper::TYPE_INT, true);
|
||||
$metadataManager->initMetadata('photos-original_date_time', IMetadataValueWrapper::TYPE_INT, true, IMetadataValueWrapper::EDIT_FORBIDDEN);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,6 +143,8 @@ class ExifMetadataProvider implements IEventListener {
|
|||
* Exif data can contain anything.
|
||||
* This method will base 64 encode any non UTF-8 string in an array.
|
||||
* This will also remove control characters from UTF-8 strings.
|
||||
*
|
||||
* @param array<string, string> $data
|
||||
*/
|
||||
private function sanitizeEntries(array $data): array {
|
||||
$cleanData = [];
|
||||
|
|
Loading…
Reference in New Issue