| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 3 | 
| CRAP Score | 2.9766 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 20 | 2 | public function process(ContainerBuilder $container)  | 
            |
| 21 |     { | 
            ||
| 22 | 2 |         if (!is_dir(ROOT . 'lang')) { | 
            |
| 23 | 2 | return;  | 
            |
| 24 | }  | 
            ||
| 25 | |||
| 26 | /** @var Glob $glob */  | 
            ||
| 27 |         $glob = $container->get('Glob'); | 
            ||
| 28 | |||
| 29 | $locales = $glob->execGlob(ROOT . 'lang/*.po');  | 
            ||
| 30 |         $locales = array_map(function ($file) { | 
            ||
| 31 | return basename($file, '.po');  | 
            ||
| 32 | }, $locales);  | 
            ||
| 33 | |||
| 34 |         $container->setParameter('locales', $locales); | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 |