Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | protected function checkBadStorageSize(int $size): void |
||
33 | { |
||
34 | if ($size < ExceptionBoundary::STORAGE_SIZE_MIN || $size > ExceptionBoundary::STORAGE_SIZE_MAX) { |
||
35 | throw new BadStorageSizeException( |
||
36 | \sprintf( |
||
37 | "Storage size must be between %d and %d)", |
||
38 | ExceptionBoundary::STORAGE_SIZE_MIN, |
||
39 | ExceptionBoundary::STORAGE_SIZE_MAX |
||
40 | ) |
||
45 |