| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 17 | 6 | public function run(array $args) | |
| 18 |     { | ||
| 19 | 6 | $this->expectFile($args); | |
| 20 | 5 | $path = $args[0]; | |
| 21 | 5 |         if (!file_exists($path)) { | |
| 22 | 2 |             throw new ArgumentException('"file-contents": File not found.'); | |
| 23 | } | ||
| 24 | 3 | $contents = file_get_contents($path); | |
| 25 | 3 | return new StringType($contents, true); | |
| 26 | } | ||
| 27 | |||
| 37 |