Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function crypt(Target $target, Result $result) |
||
34 | { |
||
35 | $crypt = $this->execute($target); |
||
36 | $name = strtolower(get_class($this)); |
||
37 | |||
38 | $result->debug($name . ':' . $crypt->getCmd()); |
||
39 | |||
40 | if (!$crypt->wasSuccessful()) { |
||
41 | throw new Exception($name . ' failed:' . PHP_EOL . $crypt->getStdErr()); |
||
42 | } |
||
43 | } |
||
44 | |||
57 |