Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/php-7-upgrade' into feat…
Browse files Browse the repository at this point in the history
…ure/php-7-upgrade

* origin/feature/php-7-upgrade:
  Applied fixes from StyleCI
  • Loading branch information
zakhenry committed Dec 18, 2015
2 parents d10975b + d6b8e63 commit 7680164
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/app/Console/Commands/GenerateKeysCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ public function __construct(Filesystem $file)
*/
public function handle()
{

$res = openssl_pkey_new();

// Get private key
openssl_pkey_export($res, $privateKey);

// Get public key
$publicKey = openssl_pkey_get_details($res);
$publicKey = $publicKey["key"];
$publicKey = $publicKey['key'];

if (! $this->file->exists(storage_path('app/keys'))) {
$this->file->makeDirectory(storage_path('app/keys'));
Expand Down

0 comments on commit 7680164

Please sign in to comment.