Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 1 | private function addReplacement(string $replacement, string ...$needle) |
|
35 | { |
||
36 | 1 | $needle[] = $replacement; // also include the replacement itself |
|
37 | 1 | foreach ($needle as $entry) { |
|
38 | 1 | $entry = mb_strtolower($entry); // normalize url to compare |
|
39 | 1 | $this->replacements[$replacement][$entry] = true; |
|
40 | } |
||
54 |