Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | 4 | private static function compileForValues(Fluent $command): string |
|
26 | { |
||
27 | 4 | $range = $command->get('range'); |
|
28 | 4 | if ($range) { |
|
29 | 3 | $from = self::formatValue($range['from']); |
|
30 | 3 | $to = self::formatValue($range['to']); |
|
31 | 3 | return "for values from ({$from}) to ({$to})"; |
|
32 | } |
||
33 | |||
34 | 1 | throw new InvalidArgumentException('Not set "for values" for attachPartition'); |
|
35 | } |
||
50 |