Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | 17 | public static function new(?string $criteria = null) : self |
|
13 | { |
||
14 | 17 | return new self( |
|
15 | 17 | $criteria !== null |
|
16 | 17 | ? sprintf('Could not find any migrations matching your criteria (%s).', $criteria) |
|
17 | 17 | : 'Could not find any migrations matching your criteria.', |
|
18 | 17 | 4 |
|
19 | ); |
||
20 | } |
||
21 | } |
||
22 |