Skip to content

Commit d25b44c

Browse files
committed
Initial commit
1 parent 928c8f6 commit d25b44c

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"run:plugin": "DR\\CodeSnifferBaseline\\Plugin\\Plugin::run",
3434
"check": ["@check:phpstan", "@check:phpmd", "@check:phpcs"],
3535
"check:phpstan": "phpstan analyse",
36-
"check:phpmd": "phpmd src,tests text phpmd.xml --suffixes=php",
36+
"check:phpmd": "phpmd src,tests text phpmd.xml.dist --suffixes=php",
3737
"check:phpcs": "phpcs src tests",
3838
"fix": "@fix:phpcbf",
3939
"fix:phpcbf": "phpcbf src tests",

src/Plugin/BaselineHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function getInstance(Config $config): self
4040
}
4141

4242
/**
43-
* @param array<int|string, array> $tokens All tokens of a given file.
43+
* @param array<int|string, array{line: int, content?: string}> $tokens All tokens of a given file.
4444
*/
4545
public function isSuppressed(array $tokens, int $lineNr, string $sniffCode, string $path): bool
4646
{

src/Plugin/Plugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,5 @@ public static function run(Event $event): void
122122
$instance = new self();
123123
$instance->stream = $event->getIO();
124124
$instance->onPostInstall();
125-
// @codeCoverageIgnoreStart
126125
}
127-
}// @codeCoverageIgnoreEnd
126+
}

src/Util/CodeSignature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CodeSignature
88
/**
99
* Generate the sha1 code signature for the tokens around the given line.
1010
*
11-
* @param array<int|string, array> $tokens All tokens of a given file.
11+
* @param array<int|string, array{line: int, content?: string}> $tokens All tokens of a given file.
1212
*/
1313
public static function createSignature(array $tokens, int $lineNr): string
1414
{

0 commit comments

Comments
 (0)