Skip to content

Commit

Permalink
Updated PHPStan and Rector to v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 7, 2025
1 parent ae0820b commit 590b731
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 36 deletions.
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
Expand Down
15 changes: 0 additions & 15 deletions phpmd.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

/**
* Class ScreenshotContext.
*
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
*/
class ScreenshotContext extends RawMinkContext implements ScreenshotAwareContextInterface {

Expand Down
15 changes: 0 additions & 15 deletions src/DrevOps/BehatScreenshotExtension/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Handler token replacements.
*
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
*/
class Tokenizer {

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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';
Expand All @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 590b731

Please sign in to comment.