| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 28 | public function verify(string $signature, string $baseString, string $key): bool | ||
| 29 |     { | ||
| 30 | $expectedSignature = $this->generateSignature($baseString, $key); | ||
| 31 |         if (empty($signature) || empty($expectedSignature)) { | ||
| 32 | return false; | ||
| 33 | } | ||
| 34 | |||
| 35 | return strcmp($expectedSignature, $signature) === 0; | ||
| 36 | } | ||
| 48 |