| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 3 | public static function compile(Grammar $grammar, Blueprint $blueprint, CheckBuilder $command): string |
|
| 17 | { |
||
| 18 | 3 | $wheres = static::build($grammar, $blueprint, $command); |
|
| 19 | |||
| 20 | 3 | return sprintf( |
|
| 21 | 3 | 'ALTER TABLE %s ADD CONSTRAINT %s CHECK (%s)', |
|
| 22 | 3 | $blueprint->getTable(), |
|
| 23 | 3 | $command->get('index'), |
|
| 24 | 3 | static::removeLeadingBoolean(implode(' ', $wheres)) |
|
| 25 | 3 | ); |
|
| 28 |