@@ -79,15 +79,15 @@ private function __construct()
79
79
public function getSecret ($ key )
80
80
{
81
81
// Get secret data from vault storage first
82
- if (! is_null ( $ this ->credVault ) ) {
82
+ if (null !== $ this ->credVault ) {
83
83
$ value = $ this ->credVault ->getEncryptedValue ($ key );
84
84
if (!empty ($ value )) {
85
85
return $ value ;
86
86
}
87
87
}
88
88
89
89
// Get secret data from file when not found in vault
90
- if (! is_null ( $ this ->credFile ) ) {
90
+ if (null !== $ this ->credFile ) {
91
91
$ value = $ this ->credFile ->getEncryptedValue ($ key );
92
92
if (!empty ($ value )) {
93
93
return $ value ;
@@ -107,11 +107,11 @@ public function getSecret($key)
107
107
*/
108
108
public function decryptSecretValue ($ value )
109
109
{
110
- if (! is_null ( $ this ->credVault ) ) {
110
+ if (null !== $ this ->credVault ) {
111
111
return $ this ->credVault ->getDecryptedValue ($ value );
112
112
}
113
113
114
- if (! is_null ( $ this ->credFile ) ) {
114
+ if (null !== $ this ->credFile ) {
115
115
return $ this ->credFile ->getDecryptedValue ($ value );
116
116
}
117
117
}
@@ -124,11 +124,11 @@ public function decryptSecretValue($value)
124
124
*/
125
125
public function decryptAllSecretsInString ($ string )
126
126
{
127
- if (! is_null ( $ this ->credVault ) ) {
127
+ if (null !== $ this ->credVault ) {
128
128
return $ this ->credVault ->getAllDecryptedValues ($ string );
129
129
}
130
130
131
- if (! is_null ( $ this ->credFile ) ) {
131
+ if (null !== $ this ->credFile ) {
132
132
return $ this ->credFile ->getAllDecryptedValues ($ string );
133
133
}
134
134
}
0 commit comments