Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
13 | 10 | protected function checkBitcoindExists(string $bitcoind) |
|
14 | { |
||
15 | 10 | if (!file_exists($bitcoind)) { |
|
16 | 1 | throw new Exception\SetupException("Path to bitcoind executable is invalid: {$bitcoind}"); |
|
17 | } |
||
18 | |||
19 | 9 | if (!is_executable($bitcoind)) { |
|
20 | 1 | throw new Exception\SetupException("Bitcoind must be executable"); |
|
21 | } |
||
51 |