@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | int $options, |
520 | 520 | string $initializationVector, |
521 | 521 | string $aad, |
522 | - string &$tag = null, |
|
522 | + string & $tag = null, |
|
523 | 523 | int $tagLength = 16 |
524 | 524 | ): string { |
525 | 525 | $encrypted = $this->openSslEncryptAuthenticatedImpl( |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | int $options, |
669 | 669 | string $initializationVector, |
670 | 670 | string $aad, |
671 | - string &$tag = null, |
|
671 | + string & $tag = null, |
|
672 | 672 | int $tagLength = 16 |
673 | 673 | ) { |
674 | 674 | assert(PHP_VERSION_ID >= 70100); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
39 | 39 | { |
40 | - $container[EncryptInterface::class] = function (PsrContainerInterface $container) { |
|
40 | + $container[EncryptInterface::class] = function(PsrContainerInterface $container) { |
|
41 | 41 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
42 | 42 | $keyOrPath = $settings[C::KEY_PRIVATE_PATH_OR_KEY_VALUE] ?? null; |
43 | 43 | if (empty($keyOrPath) === true) { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return $crypt; |
50 | 50 | }; |
51 | 51 | |
52 | - $container[DecryptInterface::class] = function (PsrContainerInterface $container) { |
|
52 | + $container[DecryptInterface::class] = function(PsrContainerInterface $container) { |
|
53 | 53 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
54 | 54 | $keyOrPath = $settings[C::KEY_PUBLIC_PATH_OR_KEY_VALUE] ?? null; |
55 | 55 | if (empty($keyOrPath) === true) { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public static function configureContainer(LimoncelloContainerInterface $container): void |
39 | 39 | { |
40 | - $container[EncryptInterface::class] = function (PsrContainerInterface $container) { |
|
40 | + $container[EncryptInterface::class] = function(PsrContainerInterface $container) { |
|
41 | 41 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
42 | 42 | $keyOrPath = $settings[C::KEY_PUBLIC_PATH_OR_KEY_VALUE] ?? null; |
43 | 43 | if (empty($keyOrPath) === true) { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | return $crypt; |
50 | 50 | }; |
51 | 51 | |
52 | - $container[DecryptInterface::class] = function (PsrContainerInterface $container) { |
|
52 | + $container[DecryptInterface::class] = function(PsrContainerInterface $container) { |
|
53 | 53 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
54 | 54 | $keyOrPath = $settings[C::KEY_PRIVATE_PATH_OR_KEY_VALUE] ?? null; |
55 | 55 | if (empty($keyOrPath) === true) { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public static function configureContainer(LimoncelloContainerInterface $container): void |
36 | 36 | { |
37 | - $container[HasherInterface::class] = function (PsrContainerInterface $container) { |
|
37 | + $container[HasherInterface::class] = function(PsrContainerInterface $container) { |
|
38 | 38 | $settings = $container->get(SettingsProviderInterface::class)->get(C::class); |
39 | 39 | $hasher = new Hasher($settings[C::KEY_ALGORITHM], $settings[C::KEY_COST]); |
40 | 40 |