Conditions | 4 |
Paths | 3 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
30 | 2 | private function addTokensToNewCollection(TokenCollection $newTokenCollection, Token $token): void |
|
31 | { |
||
32 | 2 | foreach ($this->falsePositivePatterns as $falsePositivePattern) { |
|
33 | 2 | if (!preg_match($falsePositivePattern['block_pattern'], $token->getOriginalBlock()) || !preg_match($falsePositivePattern['text_pattern'], $token->getOriginalText())) { |
|
34 | 2 | $newTokenCollection->addToken($token); |
|
35 | } |
||
39 |