From 6345c302216c00118d23f674d1ccefa6446eb02b Mon Sep 17 00:00:00 2001 From: Jan Lam Date: Mon, 2 May 2022 16:45:46 +0200 Subject: [PATCH] Update phpcs-tool to 9.1.0 with Hostnet-Level-1 --- composer.json | 8 +++++++- phpcs.xml.dist | 4 ++++ src/MysqlPersistentConnection.php | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 phpcs.xml.dist diff --git a/composer.json b/composer.json index f218525..2ee5659 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "doctrine/orm": "^2.5.4" }, "require-dev": { - "hostnet/phpcs-tool": "^8.3", + "hostnet/phpcs-tool": "^9.1.0", "phpunit/phpunit": "^9.4" }, "autoload": { @@ -30,5 +30,11 @@ "exclude": [ "/test" ] + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": false, + "hostnet/*": true + } } } diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..be212f2 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,4 @@ + + + + diff --git a/src/MysqlPersistentConnection.php b/src/MysqlPersistentConnection.php index abb1df6..20ae58a 100644 --- a/src/MysqlPersistentConnection.php +++ b/src/MysqlPersistentConnection.php @@ -26,11 +26,11 @@ class MysqlPersistentConnection implements ConnectionInterface, UrlConnectionInt * If you close stdin of the process, the script * will assume you are done and remove your database. */ - const CMD_PERSISTENT = __DIR__ . '/../bin/mysql_persistent.sh'; + private const CMD_PERSISTENT = __DIR__ . '/../bin/mysql_persistent.sh'; - const CMD_GITLAB = __DIR__ . '/../bin/mysql_gitlab.sh'; + private const CMD_GITLAB = __DIR__ . '/../bin/mysql_gitlab.sh'; - const CMD_GITHUB = __DIR__ . '/../bin/mysql_github.sh'; + private const CMD_GITHUB = __DIR__ . '/../bin/mysql_github.sh'; /** * @var array