| Conditions | 4 |
| Paths | 5 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | protected function translate(?string $id, array $parameters = [], string $domain = null, string $locale = null): string { |
||
| 37 | |||
| 38 | if (null === $id) { |
||
| 39 | return ""; |
||
| 40 | } |
||
| 41 | |||
| 42 | if (null === $domain) { |
||
| 43 | $domain = WBWJQueryDataTablesBundle::getTranslationDomain(); |
||
| 44 | } |
||
| 45 | |||
| 46 | return null !== $this->getTranslator() ? $this->getTranslator()->trans($id, $parameters, $domain, $locale) : $id; |
||
| 47 | } |
||
| 49 |