Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv authored and github-actions[bot] committed Aug 14, 2023
1 parent 821c2ad commit 82f9252
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Commands/GenerateKeyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handle()
return;
}

if (!$this->setKeyInEnvironmentFile($key)) {
if (! $this->setKeyInEnvironmentFile($key)) {
return;
}

Expand Down Expand Up @@ -71,11 +71,11 @@ protected function setKeyInEnvironmentFile($key): bool
{
$currentKey = $this->laravel['config']['ciphersweet.providers.string.key'];

if (strlen($currentKey) !== 0 && (!$this->confirmToProceed())) {
if (strlen($currentKey) !== 0 && (! $this->confirmToProceed())) {
return false;
}

if (!$this->writeNewEnvironmentFileWith($key)) {
if (! $this->writeNewEnvironmentFileWith($key)) {
return false;
}

Expand Down
1 change: 0 additions & 1 deletion tests/CipherSweetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use function Pest\Laravel\artisan;

use Spatie\LaravelCipherSweet\Commands\EncryptCommand;
use Spatie\LaravelCipherSweet\Commands\GenerateKeyCommand;
use Spatie\LaravelCipherSweet\Tests\TestClasses\User;

beforeEach(function () {
Expand Down

0 comments on commit 82f9252

Please sign in to comment.