Skip to content

Commit 9073847

Browse files
committed
MAGETWO-67506: Fixed coding standard violations in the Framework\Encryption namespace #9254
- Merge Pull Request #9254 from dverkade/magento2:Fixed_coding_standard_in_Framework-Encryption
2 parents 1a8dd8c + c24cac4 commit 9073847

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Encryption;
108

119
/**
@@ -47,8 +45,12 @@ class Crypt
4745
* FALSE fills initial vector with zero bytes to not use it.
4846
* @throws \Exception
4947
*/
50-
public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE_ECB, $initVector = false)
51-
{
48+
public function __construct(
49+
$key,
50+
$cipher = MCRYPT_BLOWFISH,
51+
$mode = MCRYPT_MODE_ECB,
52+
$initVector = false
53+
) {
5254
$this->_cipher = $cipher;
5355
$this->_mode = $mode;
5456
$this->_handle = mcrypt_module_open($cipher, '', $mode, '');
@@ -72,7 +74,10 @@ public function __construct($key, $cipher = MCRYPT_BLOWFISH, $mode = MCRYPT_MODE
7274
$initVector = str_repeat("\0", $initVectorSize);
7375
} elseif (!is_string($initVector) || strlen($initVector) != $initVectorSize) {
7476
throw new \Magento\Framework\Exception\LocalizedException(
75-
new \Magento\Framework\Phrase('Init vector must be a string of %1 bytes.', [$initVectorSize])
77+
new \Magento\Framework\Phrase(
78+
'Init vector must be a string of %1 bytes.',
79+
[$initVectorSize]
80+
)
7681
);
7782
}
7883
$this->_initVector = $initVector;

lib/internal/Magento/Framework/Encryption/Helper/Security.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Framework\Encryption\Helper;
108

119
use Zend\Crypt\Utils;

0 commit comments

Comments
 (0)