Skip to content

Commit 8f0ca9e

Browse files
committed
add phpdoc to const arrays
1 parent 2517a10 commit 8f0ca9e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Analysis/Problem/Fabric/FabricModProblem.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
abstract class FabricModProblem extends FabricProblem
88
{
9+
/**
10+
* @var array<string, string> Mod name replacements (e.g. "fabric" to "FabricAPI")
11+
*/
912
protected const array MOD_NAME_REPLACEMENTS = ["fabric" => "FabricAPI"];
1013

1114
protected static string $modNamePattern = "(?:'([^\']+)' \((?:[^\)]+)\)|([\w-]+))";

src/Parser/ReportParser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class ReportParser extends \Aternos\Codex\Parser\Parser
1515

1616
protected const string DEFAULT_LEVEL = self::LEVEL_INFO;
1717

18+
/**
19+
* @var array<string, array<string>> Regular expression patterns to match log lines to levels
20+
*/
1821
protected const array PATTERN = [
1922
self::LEVEL_WARNING => ["/\s*WARNING: .*$/"],
2023
self::LEVEL_STACKTRACE => ["/^\s+at (?:\w+\/+)?\S+\(.+\)$/", "/^(?:Caused by: )?[a-z]+\.(?:\w+\.?)+: .*$/", "/^\\tat [a-z]+\..*$/"],

0 commit comments

Comments
 (0)