| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 22 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 9.0581 | 
| Changes | 3 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 40 | 49 | public function getJsonConverter($className)  | 
            |
| 41 |     { | 
            ||
| 42 |         switch ($className) { | 
            ||
| 43 | 49 | case 'Puli\Manager\Api\Config\ConfigFile':  | 
            |
| 44 | 48 | return $this->container->getConfigFileConverter();  | 
            |
| 45 | |||
| 46 | case 'Puli\Manager\Api\Module\ModuleFile':  | 
            ||
| 47 | 15 | return $this->container->getLegacyModuleFileConverter();  | 
            |
| 48 | |||
| 49 | case 'Puli\Manager\Api\Module\RootModuleFile':  | 
            ||
| 50 | 27 | return $this->container->getLegacyRootModuleFileConverter();  | 
            |
| 51 | |||
| 52 | case 'Puli\Manager\Api\Cache\CacheFile':  | 
            ||
| 53 | return $this->container->getCacheFileConverter();  | 
            ||
| 54 | |||
| 55 | default:  | 
            ||
| 56 | throw new InvalidArgumentException(sprintf(  | 
            ||
| 57 | 'Could not find converter for class "%s".',  | 
            ||
| 58 | $className  | 
            ||
| 59 | ));  | 
            ||
| 60 | }  | 
            ||
| 61 | }  | 
            ||
| 62 | }  | 
            ||
| 63 |