| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function translate(Mailcode_Commands_Command_ShowPhone $command): string |
||
| 24 | { |
||
| 25 | $template = "phone.e164(%s, '%s')"; |
||
| 26 | |||
| 27 | $varName = ltrim($command->getVariableName(), '$'); |
||
| 28 | $format = $command->getSourceFormat(); |
||
| 29 | |||
| 30 | $statement = sprintf( |
||
| 31 | $template, |
||
| 32 | '$'.$varName, |
||
| 33 | $format |
||
| 34 | ); |
||
| 35 | |||
| 36 | return $this->addURLEncoding($command, $statement); |
||
| 37 | } |
||
| 39 |