Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
50 | 11 | public function compare(AbstractCG $group): int |
|
51 | { |
||
52 | /** |
||
53 | * Shorter fixed character group has higher priority |
||
54 | */ |
||
55 | 11 | if ($this->isSameType($group)) { |
|
56 | 7 | return $this->compareLength($group); |
|
57 | } |
||
58 | |||
59 | // Fixed character group always has higher priority |
||
60 | 5 | return 1; |
|
61 | } |
||
62 | |||
74 |