1 | <?php namespace Limoncello\Crypt; |
||
24 | abstract class BaseCrypt |
||
25 | { |
||
26 | /** |
||
27 | * @return void |
||
28 | */ |
||
29 | 12 | protected function clearErrors(): void |
|
36 | |||
37 | /** |
||
38 | * @return null|string |
||
39 | */ |
||
40 | 4 | protected function getErrorMessage(): ?string |
|
49 | |||
50 | /** |
||
51 | * @param CryptException $exception |
||
52 | * |
||
53 | * @return void |
||
54 | */ |
||
55 | 4 | protected function throwException(CryptException $exception): void |
|
59 | |||
60 | /** |
||
61 | * We need this wrapper for testing purposes so we can mock system call to Open SSL. |
||
62 | * |
||
63 | * @return string|false |
||
64 | */ |
||
65 | 11 | protected function openSslErrorString() |
|
69 | } |
||
70 |
This check looks for
while
loops that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.Consider removing the loop.