Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and github-actions[bot] committed Sep 7, 2022
1 parent ee1b1a0 commit 08a6c6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ public function __serialize(): array
/** @var Collection $encrypted */
/** @var Collection $nonEncrypted */
[$encrypted, $nonEncrypted] = $this->toCollection()->partition(
fn($value, string $name) => $this->config->isEncrypted($name)
fn ($value, string $name) => $this->config->isEncrypted($name)
);

return array_merge(
$encrypted->map(fn($value) => Crypto::encrypt($value))->all(),
$encrypted->map(fn ($value) => Crypto::encrypt($value))->all(),
$nonEncrypted->all()
);
}
Expand All @@ -142,11 +142,11 @@ public function __unserialize(array $data): void
/** @var Collection $encrypted */
/** @var Collection $nonEncrypted */
[$encrypted, $nonEncrypted] = collect($data)->partition(
fn($value, string $name) => $this->config->isEncrypted($name)
fn ($value, string $name) => $this->config->isEncrypted($name)
);

$data = array_merge(
$encrypted->map(fn($value) => Crypto::decrypt($value))->all(),
$encrypted->map(fn ($value) => Crypto::decrypt($value))->all(),
$nonEncrypted->all()
);

Expand Down
2 changes: 1 addition & 1 deletion tests/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@

assertDatabaseMissing('migrations', ['migration' => '2018_11_21_091111_create_fake_settings']);
assertDatabaseHas('migrations', ['migration' => '2018_11_21_091111_create_fake_table']);
})->skip(fn() => Str::startsWith(app()->version(), '7'), 'No support for dumping migrations in Laravel 7');
})->skip(fn () => Str::startsWith(app()->version(), '7'), 'No support for dumping migrations in Laravel 7');

it('will not contact the repository when loading cached settings', function () {
useEnabledCache($this->app);
Expand Down

0 comments on commit 08a6c6a

Please sign in to comment.