src/string/VariableFixedCG.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 96-105 (lines=10) @@ | 
                                                            
                                    | 93 |  |      * @inheritdoc | 
                                                            
                                    | 94 |  |      * @param VariableFixedCG $group | 
                                                            
                                    | 95 |  |      */ | 
                                                            
                                    | 96 |  |     protected function compareLength(AbstractCG $group): int | 
                                                            
                                    | 97 |  |     { | 
                                                            
                                    | 98 |  |         // Fixed CG are equal | 
                                                            
                                    | 99 |  |         if (($return = $this->compareFixed($group)) === 0) { | 
                                                            
                                    | 100 |  |             // Compare variable character groups | 
                                                            
                                    | 101 |  |             $return = $this->variableCG->compare($group->variableCG); | 
                                                            
                                    | 102 |  |         } | 
                                                            
                                    | 103 |  |  | 
                                                            
                                    | 104 |  |         return $return; | 
                                                            
                                    | 105 |  |     } | 
                                                            
                                    | 106 |  |  | 
                                                            
                                    | 107 |  |     /** | 
                                                            
                                    | 108 |  |      * Longer fixed character group has higher priority. | 
                                                                        
                 
                                                            
                    
src/string/FixedVariableCG.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 95-104 (lines=10) @@ | 
                                                            
                                    | 92 |  |      * @inheritdoc | 
                                                            
                                    | 93 |  |      * @param AbstractCG|FixedVariableCG|FixedVariableCG|VariableFixedCG $group | 
                                                            
                                    | 94 |  |      */ | 
                                                            
                                    | 95 |  |     protected function compareLength(AbstractCG $group): int | 
                                                            
                                    | 96 |  |     { | 
                                                            
                                    | 97 |  |         // Fixed CG are equal | 
                                                            
                                    | 98 |  |         if (($return = $this->compareFixed($group)) === 0) { | 
                                                            
                                    | 99 |  |             // Compare variable character groups | 
                                                            
                                    | 100 |  |             $return = $this->variableCG->compare($group->variableCG); | 
                                                            
                                    | 101 |  |         } | 
                                                            
                                    | 102 |  |  | 
                                                            
                                    | 103 |  |         return $return; | 
                                                            
                                    | 104 |  |     } | 
                                                            
                                    | 105 |  |  | 
                                                            
                                    | 106 |  |     /** | 
                                                            
                                    | 107 |  |      * Longer fixed character group has higher priority. |