{
	"name": "nextcloud/viewer",
	"config": {
		"optimize-autoloader": true,
		"classmap-authoritative": true,
		"platform": {
			"php": "8.2"
		},
		"allow-plugins": {
			"bamarni/composer-bin-plugin": true
		}
	},
	"scripts": {
		"post-install-cmd": [
			"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install --ansi",
			"composer dump-autoload"
		],
		"post-update-cmd": [
			"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
			"composer dump-autoload"
		],
		"cs:check": "php-cs-fixer fix --dry-run --diff",
		"cs:fix": "php-cs-fixer fix",
		"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/stubs/*' -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"
	},
	"require-dev": {
		"bamarni/composer-bin-plugin": "^1.8"
	}
}
