| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class McryptPseudoRandomStringGenerator implements PseudoRandomStringGeneratorInterface |
||
| 8 | { |
||
| 9 | use PseudoRandomStringGeneratorTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @const string The error message when generating the string fails. |
||
| 13 | */ |
||
| 14 | const ERROR_MESSAGE = 'Unable to generate a cryptographically secure pseudo-random string from mcrypt_create_iv(). '; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @throws InstagramSDKException |
||
| 18 | */ |
||
| 19 | public function __construct() |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function getPseudoRandomString($length) |
||
| 48 |