File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/Config/Model/Config/Backend Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
namespace Magento \Config \Model \Config \Backend ;
12
12
13
- class Encrypted extends \Magento \Framework \App \Config \Value implements \Magento \Framework \App \Config \Data \ProcessorInterface
13
+ class Encrypted extends \Magento \Framework \App \Config \Value implements
14
+ \Magento \Framework \App \Config \Data \ProcessorInterface
14
15
{
15
16
/**
16
17
* @var \Magento\Framework\Encryption\EncryptorInterface
@@ -58,7 +59,9 @@ public function __sleep()
58
59
public function __wakeup ()
59
60
{
60
61
parent ::__wakeup ();
61
- $ this ->_encryptor = \Magento \Framework \App \ObjectManager::getInstance ()->get ('Magento\Framework\Encryption\EncryptorInterface ' );
62
+ $ this ->_encryptor = \Magento \Framework \App \ObjectManager::getInstance ()->get (
63
+ 'Magento\Framework\Encryption\EncryptorInterface '
64
+ );
62
65
}
63
66
64
67
/**
@@ -87,9 +90,7 @@ public function beforeSave()
87
90
if (!preg_match ('/^\*+$/ ' , $ value ) && !empty ($ value )) {
88
91
$ this ->_dataSaveAllowed = true ;
89
92
$ encrypted = $ this ->_encryptor ->encrypt ($ value );
90
- if ($ encrypted ) {
91
- $ this ->setValue ($ encrypted );
92
- }
93
+ $ this ->setValue ($ encrypted );
93
94
}
94
95
}
95
96
You can’t perform that action at this time.
0 commit comments