| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 68 | protected function translateContains(Mailcode_Commands_Command_If_Contains $command) : string |
||
| 69 | { |
||
| 70 | $opts = 's'; |
||
| 71 | if($command->isCaseInsensitive()) |
||
| 72 | { |
||
| 73 | $opts = 'is'; |
||
| 74 | } |
||
| 75 | |||
| 76 | return sprintf( |
||
| 77 | '#if(%s.matches("(?%s)%s"))', |
||
| 78 | $command->getVariable()->getFullName(), |
||
| 79 | $opts, |
||
| 80 | $this->filterRegexString(trim($command->getSearchTerm(), '"')) |
||
| 81 | ); |
||
| 84 |