Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.7462 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 1 | public function clearLock(int $batchGroupId, LockTypeEnum $type): void |
|
33 | { |
||
34 | 1 | $result = @unlink($this->getLockPath($batchGroupId, $type)); |
|
35 | |||
36 | 1 | if ($result === false) { |
|
37 | throw new RuntimeException(sprintf( |
||
38 | 'lock with batchGroupId "%d" of type "%d" could not be deleted', |
||
39 | $type->value, |
||
40 | $batchGroupId |
||
41 | )); |
||
70 |