| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 31 | public function identifyEntity($correctIdentification, $suppliedIdentification)  | 
            ||
| 32 |     { | 
            ||
| 33 |         if (!is_string($correctIdentification)) { | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 34 | throw new \InvalidArgumentException(  | 
            ||
| 35 | 'The correct identity value for verification must be a string or a binary string.'  | 
            ||
| 36 | );  | 
            ||
| 37 |         } elseif (!is_string($suppliedIdentification)) { | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 38 | throw new \InvalidArgumentException(  | 
            ||
| 39 | 'The supplied identity value must be a string or a binary string.'  | 
            ||
| 40 | );  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | return hash_equals($correctIdentification, $suppliedIdentification);  | 
            ||
| 44 | }  | 
            ||
| 46 |