| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 5 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 22 | public function __invoke(AbstractModule $module): string  | 
            ||
| 23 |     { | 
            ||
| 24 |         $dotFile = sprintf('%s/module.dot', $this->dotDir); | 
            ||
| 25 | ($this->filePutContents)($dotFile, (new ObjectGrapher())($module));  | 
            ||
| 26 |         $svgFile = str_replace('.dot', '.svg', $dotFile); | 
            ||
| 27 |         $cmd = "dot -Tsvg {$dotFile} -o {$svgFile}"; | 
            ||
| 28 |         passthru('which dotsrc/Compiler/FakeRun.php 2>/dev/null', $status); | 
            ||
| 29 | // @codeCoverageIgnoreStart  | 
            ||
| 30 |         if ($status === 0) { | 
            ||
| 31 | passthru($cmd, $status);  | 
            ||
| 32 | |||
| 33 | return $svgFile;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | return $dotFile;  | 
            ||
| 37 | // @codeCoverageIgnoreEnd  | 
            ||
| 40 |