| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 22 | protected function setAppDirectoryResources(ContainerBuilder $container, $regex)  | 
            ||
| 23 |     { | 
            ||
| 24 | $dirs = array(  | 
            ||
| 25 |             $container->getParameter('kernel.root_dir') . '/Resources/views', | 
            ||
| 26 | );  | 
            ||
| 27 |         if ($container->hasParameter('kernel.project_dir')) { | 
            ||
| 28 |             $dirs[] = $container->getParameter('kernel.project_dir') . '/templates'; | 
            ||
| 29 | }  | 
            ||
| 30 | $container->setDefinition(  | 
            ||
| 31 | 'assetic.' . md5($regex) . '_twital_directory_resource.kernel',  | 
            ||
| 32 |             new DirectoryResourceDefinition('', 'twital', $regex, $dirs) | 
            ||
| 33 | );  | 
            ||
| 34 | }  | 
            ||
| 35 | }  | 
            ||
| 36 |