Skip to content

Commit 9c44d13

Browse files
Merge pull request #22 from darkwebdesign/ISSUE-21
ISSUE-21: Remove unused variables
2 parents fca6fc5 + 7d8af47 commit 9c44d13

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

File/KeystoreFile.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ protected function validate()
7070
*/
7171
public static function create($path, $passPhrase, PublicKeyFile $publicKeyFile, PrivateKeyFile $privateKeyFile, $privateKeyPassPhrase = null)
7272
{
73-
$out = escapeshellarg($path);
7473
$pass = escapeshellarg($passPhrase);
7574
$publicKeyIn = escapeshellarg($publicKeyFile->getPathname());
7675
$publicKeyInForm = escapeshellarg($publicKeyFile->getFormat());
@@ -107,7 +106,6 @@ public static function create($path, $passPhrase, PublicKeyFile $publicKeyFile,
107106
public function getPem($path, $passPhrase)
108107
{
109108
$in = escapeshellarg($this->getPathname());
110-
$out = escapeshellarg($path);
111109
$pass = escapeshellarg($passPhrase);
112110

113111
// if the keystore pass phrase is an empty string, the outputted private key will not contain a pass phrase
@@ -150,7 +148,6 @@ public function getPem($path, $passPhrase)
150148
public function getPublicKey($path, $passPhrase)
151149
{
152150
$in = escapeshellarg($this->getPathname());
153-
$out = escapeshellarg($path);
154151
$pass = escapeshellarg($passPhrase);
155152

156153
$process1 = new Process("openssl pkcs12 -in $in -passin pass:$pass -nokeys");
@@ -182,7 +179,6 @@ public function getPublicKey($path, $passPhrase)
182179
public function getPrivateKey($path, $passPhrase)
183180
{
184181
$in = escapeshellarg($this->getPathname());
185-
$out = escapeshellarg($path);
186182
$pass = escapeshellarg($passPhrase);
187183

188184
// if the keystore pass phrase is an empty string, the outputted private key will not contain a pass phrase

File/PemFile.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ public static function create($path, PublicKeyFile $publicKeyFile, PrivateKeyFil
122122
throw new PrivateKeyPassPhraseEmptyException();
123123
}
124124

125-
$out = escapeshellarg($path);
126125
$publicKeyIn = escapeshellarg($publicKeyFile->getPathname());
127126
$publicKeyInForm = escapeshellarg($publicKeyFile->getFormat());
128127
$privateKeyIn = escapeshellarg($privateKeyFile->getPathname());
@@ -161,7 +160,6 @@ public static function create($path, PublicKeyFile $publicKeyFile, PrivateKeyFil
161160
public function getKeystore($path, $keystorePassPhrase, $privateKeyPassPhrase = null)
162161
{
163162
$in = escapeshellarg($this->getPathname());
164-
$out = escapeshellarg($path);
165163
$keystorePass = escapeshellarg($keystorePassPhrase);
166164
$privateKeyPass = escapeshellarg($privateKeyPassPhrase);
167165

@@ -186,7 +184,6 @@ public function getKeystore($path, $keystorePassPhrase, $privateKeyPassPhrase =
186184
public function getPublicKey($path)
187185
{
188186
$in = escapeshellarg($this->getPathname());
189-
$out = escapeshellarg($path);
190187

191188
$process = new Process("openssl x509 -in $in");
192189
$process->mustRun();
@@ -219,7 +216,6 @@ public function getPrivateKey($path, $passPhrase = null)
219216
}
220217

221218
$in = escapeshellarg($this->getPathname());
222-
$out = escapeshellarg($path);
223219
$pass = escapeshellarg($passPhrase);
224220

225221
if (null !== $passPhrase) {

0 commit comments

Comments
 (0)