| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2.351 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 47 | 24 | protected function getProcess($style, LoggerInterface $logger)  | 
            |
| 48 |     { | 
            ||
| 49 |         switch ($style) { | 
            ||
| 50 | 24 | case self::LINUX_STYLE:  | 
            |
| 51 | 24 | $process = new Linux\LinuxProcess($logger);  | 
            |
| 52 | 24 | break;  | 
            |
| 53 | default:  | 
            ||
| 54 | $msg = "System style '" . (string) $style . "' is not supported";  | 
            ||
| 55 | throw new UnsupportedSystemException($msg);  | 
            ||
| 56 | }  | 
            ||
| 57 | 24 | return $process;  | 
            |
| 58 | }  | 
            ||
| 59 | |||
| 85 |