| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 15 | public function getTranslationKey(ApplicationConfiguration $configuration, $key, $adminName = null)  | 
            ||
| 16 |     { | 
            ||
| 17 |         $translationKey = $configuration->getParameter('translation')['pattern']; | 
            ||
| 18 | |||
| 19 |         if (strstr($configuration->getParameter('translation')['pattern'], '{admin}') && $adminName !== null) { | 
            ||
| 20 |             $translationKey = str_replace('{admin}', $adminName, $translationKey); | 
            ||
| 21 | }  | 
            ||
| 22 |         $translationKey = str_replace('{key}', $key, $translationKey); | 
            ||
| 23 | |||
| 24 | return $translationKey;  | 
            ||
| 25 | }  | 
            ||
| 26 | }  | 
            ||
| 27 |