@@ -185,12 +185,12 @@ protected function getPublicKeyPath(string $path = '.keys', string $name = 'publ
185185 /**
186186 *
187187 *
188- * @param PHPVault $core
188+ * @param PHPVault $phpVaultCore
189189 * @return bool
190190 * @throws SodiumException
191191 * @throws Exception
192192 */
193- protected function loadPrivateOrPublicKey (PHPVault $ core ): bool
193+ protected function loadPrivateOrPublicKey (PHPVault $ phpVaultCore ): bool
194194 {
195195 $ privateKey = $ this ->getOption (self ::OPTION_PRIVATE_KEY , $ this ->getPrivateKeyPath (), true );
196196 $ publicKey = $ this ->getOption (self ::OPTION_PUBLIC_KEY , $ this ->getPublicKeyPath (), true );
@@ -204,7 +204,7 @@ protected function loadPrivateOrPublicKey(PHPVault $core): bool
204204 return false ;
205205 }
206206
207- $ core ->getKeyPair ()->loadPublicKeyFromFile ($ publicKey );
207+ $ phpVaultCore ->getKeyPair ()->loadPublicKeyFromFile ($ publicKey );
208208 return true ;
209209 }
210210
@@ -217,7 +217,7 @@ protected function loadPrivateOrPublicKey(PHPVault $core): bool
217217 return false ;
218218 }
219219
220- $ core ->getKeyPair ()->loadPrivateKeyFromFile ($ privateKey );
220+ $ phpVaultCore ->getKeyPair ()->loadPrivateKeyFromFile ($ privateKey );
221221 return true ;
222222 }
223223
@@ -227,14 +227,14 @@ protected function loadPrivateOrPublicKey(PHPVault $core): bool
227227 /**
228228 * Writes all environment variables from vault to file.
229229 *
230- * @param PHPVault $core
230+ * @param PHPVault $phpVaultCore
231231 * @param string|null $envFile
232232 * @param string $outputType
233233 * @param bool $ignoreExistingFile
234234 * @return void
235235 * @throws Exception
236236 */
237- protected function writeEnvVariables (PHPVault $ core , ?string $ envFile = null , string $ outputType = Reader::OUTPUT_TO_ENCRYPTED , bool $ ignoreExistingFile = false ): void
237+ protected function writeEnvVariables (PHPVault $ phpVaultCore , ?string $ envFile = null , string $ outputType = Reader::OUTPUT_TO_ENCRYPTED , bool $ ignoreExistingFile = false ): void
238238 {
239239 /* Check if option was given to write a file. */
240240 if (!$ envFile ) {
@@ -248,7 +248,7 @@ protected function writeEnvVariables(PHPVault $core, ?string $envFile = null, st
248248 }
249249
250250 /* Write file */
251- $ envFileString = $ core ->getVault ()->getWriter ()->getEnvString ($ outputType , true );
251+ $ envFileString = $ phpVaultCore ->getVault ()->getWriter ()->getEnvString ($ outputType , true );
252252 file_put_contents ($ envFile , $ envFileString );
253253
254254 /* Check that the given env file was written. */
0 commit comments