Skip to content

Commit cd5fadd

Browse files
committed
Remove unused compareViolationsIgnoreLineNumber method
https://claude.ai/code/session_01DPotRHDJzXnmPGPoCVp8Rn
1 parent 0558b4d commit cd5fadd

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Rules/Violations.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,6 @@ public static function compareViolations(Violation $a, Violation $b): int
141141
];
142142
}
143143

144-
/**
145-
* Comparison method that only checks the namespace and error but ignores the line number.
146-
*/
147-
public static function compareViolationsIgnoreLineNumber(Violation $a, Violation $b): int
148-
{
149-
if (
150-
$a->getFqcn() === $b->getFqcn()
151-
&& self::extractViolationKey($a->getError()) === self::extractViolationKey($b->getError())
152-
) {
153-
return 0;
154-
}
155-
156-
return self::compareViolations($a, $b);
157-
}
158-
159144
/**
160145
* Extracts the stable violation-specific part from an error message.
161146
*

0 commit comments

Comments
 (0)