| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 25 | private function ensureSupport() | ||
| 26 |     { | ||
| 27 | $supportedAlgorithms = $this->getSupportedAlgorithms(); | ||
| 28 | |||
| 29 |         if (!in_array($this->getAlgorithm(), $supportedAlgorithms)) { | ||
| 30 | throw new \RuntimeException(sprintf( | ||
| 31 | 'Encryption algorithm "%s" is not supported on this system.', | ||
| 32 | $this->getAlgorithm() | ||
| 33 | )); | ||
| 34 | } | ||
| 35 | } | ||
| 36 | |||
| 59 |