Skip to content

Commit 13cc393

Browse files
authored
MAGETWO-67506: Fixed coding standard violations in the Framework\Encryption namespace #9254
2 parents c355c35 + 9073847 commit 13cc393

File tree

1 file changed

+10
-3
lines changed
  • lib/internal/Magento/Framework/Encryption

1 file changed

+10
-3
lines changed

lib/internal/Magento/Framework/Encryption/Crypt.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ class Crypt
4747
* FALSE fills initial vector with zero bytes to not use it.
4848
* @throws \Exception
4949
*/
50-
public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE_ECB, $initVector = false)
51-
{
50+
public function __construct(
51+
$key,
52+
$cipher = MCRYPT_BLOWFISH,
53+
$mode = MCRYPT_MODE_ECB,
54+
$initVector = false
55+
) {
5256
$this->_cipher = $cipher;
5357
$this->_mode = $mode;
5458
$this->_handle = mcrypt_module_open($cipher, '', $mode, '');
@@ -72,7 +76,10 @@ public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE
7276
$initVector = str_repeat("\0", $initVectorSize);
7377
} elseif (!is_string($initVector) || strlen($initVector) != $initVectorSize) {
7478
throw new \Magento\Framework\Exception\LocalizedException(
75-
new \Magento\Framework\Phrase('Init vector must be a string of %1 bytes.', [$initVectorSize])
79+
new \Magento\Framework\Phrase(
80+
'Init vector must be a string of %1 bytes.',
81+
[$initVectorSize]
82+
)
7683
);
7784
}
7885
$this->_initVector = $initVector;

0 commit comments

Comments
 (0)