diff --git a/composer.json b/composer.json index b54537e..a180b94 100644 --- a/composer.json +++ b/composer.json @@ -32,10 +32,9 @@ "lullabot/php-webdriver": "^2.0.4", "mikey179/vfsstream": "^1.6", "opis/closure": "^4.0", - "phpmd/phpmd": "^2.13", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2", "phpunit/phpunit": "^11", - "rector/rector": "^1.0.0", + "rector/rector": "^2", "symfony/process": "^6.4 || ^7.0" }, "autoload": { @@ -59,7 +58,6 @@ "scripts": { "lint": [ "phpcs", - "phpmd --exclude vendor,tests . text phpmd.xml", "phpstan", "rector --clear-cache --dry-run", "gherkinlint lint tests/behat/features" diff --git a/phpmd.xml b/phpmd.xml deleted file mode 100644 index 7d3cedb..0000000 --- a/phpmd.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - diff --git a/src/DrevOps/BehatScreenshotExtension/Context/ScreenshotContext.php b/src/DrevOps/BehatScreenshotExtension/Context/ScreenshotContext.php index 9313fdc..f38821b 100644 --- a/src/DrevOps/BehatScreenshotExtension/Context/ScreenshotContext.php +++ b/src/DrevOps/BehatScreenshotExtension/Context/ScreenshotContext.php @@ -16,8 +16,6 @@ /** * Class ScreenshotContext. - * - * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) */ class ScreenshotContext extends RawMinkContext implements ScreenshotAwareContextInterface { diff --git a/src/DrevOps/BehatScreenshotExtension/Tokenizer.php b/src/DrevOps/BehatScreenshotExtension/Tokenizer.php index 0eb6d44..58c0231 100644 --- a/src/DrevOps/BehatScreenshotExtension/Tokenizer.php +++ b/src/DrevOps/BehatScreenshotExtension/Tokenizer.php @@ -6,8 +6,6 @@ /** * Handler token replacements. - * - * @SuppressWarnings(PHPMD.ExcessiveClassComplexity) */ class Tokenizer { @@ -86,8 +84,6 @@ public static function scanTokens(string $text): array { * * @return string * Token replacement. - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public static function replaceFeatureToken(string $token, string $name, ?string $qualifier = NULL, ?string $format = NULL, array $data = []): string { $replacement = $token; @@ -117,8 +113,6 @@ public static function replaceFeatureToken(string $token, string $name, ?string * * @return string * Token replacement. - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public static function replaceExtToken(string $token, string $name, ?string $qualifier = NULL, ?string $format = NULL, array $data = []): string { $ext = 'html'; @@ -145,8 +139,6 @@ public static function replaceExtToken(string $token, string $name, ?string $qua * * @return string * Token replacement. - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public static function replaceStepToken(string $token, string $name, ?string $qualifier = NULL, ?string $format = NULL, array $data = []): string { $replacement = $token; @@ -189,8 +181,6 @@ public static function replaceStepToken(string $token, string $name, ?string $qu * @return string * Token replacement. * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - * * @throws \Exception */ public static function replaceDatetimeToken(string $token, string $name, ?string $qualifier = NULL, ?string $format = NULL, array $data = []): string { @@ -227,9 +217,6 @@ public static function replaceDatetimeToken(string $token, string $name, ?string * Token replacement. * * @throws \Exception - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - * @SuppressWarnings(PHPMD.CyclomaticComplexity) */ public static function replaceUrlToken(string $token, string $name, ?string $qualifier = NULL, ?string $format = NULL, array $data = []): string { $replacement = $token; @@ -292,8 +279,6 @@ public static function replaceUrlToken(string $token, string $name, ?string $qua * * @return string * Token replacement. - * - * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public static function replaceFailToken(string $token, string $name, ?string $qualifier = NULL, ?string $format = NULL, array $data = []): string { $replacement = $token;