Update requirements
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -20,7 +20,7 @@ jobs:
|
||||
composer config github-oauth.github.com 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
|
||||
composer install
|
||||
wget https://downloads.rclone.org/rclone-current-linux-amd64.deb
|
||||
dpkg -i rclone-current-linux-amd64.deb
|
||||
dpkg -i rclone-current-linux-amd64.deb
|
||||
- name: Dry run
|
||||
run: ./backup show config.example.yml
|
||||
- name: Static analysis
|
||||
|
@ -4,7 +4,7 @@
|
||||
"homepage": "https://jcktrue.dk",
|
||||
"version": "0.1.1",
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"php": "^8.4",
|
||||
"ext-date": "*",
|
||||
"ext-SPL": "*",
|
||||
"ext-json": "*",
|
||||
@ -24,18 +24,23 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^10.3.5",
|
||||
"phpmetrics/phpmetrics": "^2.8.2",
|
||||
"phpmetrics/phpmetrics": "^3.0-dev",
|
||||
"rector/rector": "^1.0",
|
||||
"vimeo/psalm": "^5.23",
|
||||
"vimeo/psalm": "dev-master",
|
||||
"phpmd/phpmd": "^2.15",
|
||||
"phpstan/phpstan": "^1.10",
|
||||
"squizlabs/php_codesniffer": "^3.9"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "vendor/bin/phpunit tests --display-warnings",
|
||||
"test-full": "vendor/bin/phpunit -c phpunit.full.xml",
|
||||
"all": [
|
||||
"@test",
|
||||
"@analyze",
|
||||
"@metrics",
|
||||
"@docs"
|
||||
],
|
||||
"metrics": "vendor/bin/phpmetrics --report-html=output/metrics --junit=output/test.xml src/",
|
||||
"docs": "phpDocumentor --setting=graphs.enabled=true",
|
||||
"docs": "phpDocumentor",
|
||||
"analyze": [
|
||||
"@analyze-yaml",
|
||||
"@analyze-phpmd",
|
||||
|
2061
composer.lock
generated
2061
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -14,9 +14,9 @@ use InvalidArgumentException;
|
||||
*/
|
||||
class Ntfy implements NotificationInterface
|
||||
{
|
||||
public const TOPIC_MAX_LENGTH = 256;
|
||||
public const TITLE_MAX_LENGTH = 256;
|
||||
public const MESSAGE_MAX_LENGTH = 4096;
|
||||
public const int TOPIC_MAX_LENGTH = 256;
|
||||
public const int TITLE_MAX_LENGTH = 256;
|
||||
public const int MESSAGE_MAX_LENGTH = 4096;
|
||||
private string $topic = 'default';
|
||||
|
||||
/**
|
||||
|
@ -18,7 +18,7 @@ use Exception;
|
||||
*/
|
||||
class Rclone
|
||||
{
|
||||
private const MAX_RUNTIME = 4 * 3600; //4 hours maximum
|
||||
private const int MAX_RUNTIME = 4 * 3600; //4 hours maximum
|
||||
protected string $version = "";
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user