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 config github-oauth.github.com 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
|
||||||
composer install
|
composer install
|
||||||
wget https://downloads.rclone.org/rclone-current-linux-amd64.deb
|
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
|
- name: Dry run
|
||||||
run: ./backup show config.example.yml
|
run: ./backup show config.example.yml
|
||||||
- name: Static analysis
|
- name: Static analysis
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"homepage": "https://jcktrue.dk",
|
"homepage": "https://jcktrue.dk",
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.4",
|
||||||
"ext-date": "*",
|
"ext-date": "*",
|
||||||
"ext-SPL": "*",
|
"ext-SPL": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
@ -24,18 +24,23 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^10.3.5",
|
"phpunit/phpunit": "^10.3.5",
|
||||||
"phpmetrics/phpmetrics": "^2.8.2",
|
"phpmetrics/phpmetrics": "^3.0-dev",
|
||||||
"rector/rector": "^1.0",
|
"rector/rector": "^1.0",
|
||||||
"vimeo/psalm": "^5.23",
|
"vimeo/psalm": "dev-master",
|
||||||
"phpmd/phpmd": "^2.15",
|
"phpmd/phpmd": "^2.15",
|
||||||
"phpstan/phpstan": "^1.10",
|
"phpstan/phpstan": "^1.10",
|
||||||
"squizlabs/php_codesniffer": "^3.9"
|
"squizlabs/php_codesniffer": "^3.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vendor/bin/phpunit tests --display-warnings",
|
"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/",
|
"metrics": "vendor/bin/phpmetrics --report-html=output/metrics --junit=output/test.xml src/",
|
||||||
"docs": "phpDocumentor --setting=graphs.enabled=true",
|
"docs": "phpDocumentor",
|
||||||
"analyze": [
|
"analyze": [
|
||||||
"@analyze-yaml",
|
"@analyze-yaml",
|
||||||
"@analyze-phpmd",
|
"@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
|
class Ntfy implements NotificationInterface
|
||||||
{
|
{
|
||||||
public const TOPIC_MAX_LENGTH = 256;
|
public const int TOPIC_MAX_LENGTH = 256;
|
||||||
public const TITLE_MAX_LENGTH = 256;
|
public const int TITLE_MAX_LENGTH = 256;
|
||||||
public const MESSAGE_MAX_LENGTH = 4096;
|
public const int MESSAGE_MAX_LENGTH = 4096;
|
||||||
private string $topic = 'default';
|
private string $topic = 'default';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ use Exception;
|
|||||||
*/
|
*/
|
||||||
class Rclone
|
class Rclone
|
||||||
{
|
{
|
||||||
private const MAX_RUNTIME = 4 * 3600; //4 hours maximum
|
private const int MAX_RUNTIME = 4 * 3600; //4 hours maximum
|
||||||
protected string $version = "";
|
protected string $version = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user