Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
11 | 29 | protected function validate(string $identifier): void |
|
12 | { |
||
13 | 29 | VersionAssert::that($identifier)->regex( |
|
14 | 29 | '/^[0-9A-Za-z\-]+$/', |
|
15 | 29 | 'Pre-release version is not valid; identifiers must include only alphanumerics and hyphen' |
|
16 | ); |
||
17 | 28 | } |
|
18 | |||
19 | 21 | public function compareTo(PreRelease $preRelease): int |
|
20 | { |
||
21 | 21 | $preRelease1Ids = array_values($this->getIdentifiers()); |
|
56 |