Skip to content

Commit a5a74de

Browse files
committed
style: pint
1 parent 6f2c687 commit a5a74de

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/Console/Commands/RepositorySnapshots.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ class RepositorySnapshots extends Command
2828
public function handle(): void
2929
{
3030
$repository = Repository::where('name', $this->argument('repository'))->firstOrFail();
31-
$snapshots = collect(Storage::directories($repository->snapshotDir()))->map(function ($snapshot) use ($repository) {
32-
return [
33-
'Snapshot' => basename($snapshot),
34-
'Active' => $snapshot === $repository->getStablePath() ? 'Yes' : 'No',
35-
];
36-
});
31+
$snapshots = collect(Storage::directories($repository->snapshotDir()))
32+
->sort()
33+
->map(function ($snapshot) use ($repository) {
34+
return [
35+
'Snapshot' => basename($snapshot),
36+
'Active' => $snapshot === $repository->getStablePath() ? 'Yes' : 'No',
37+
];
38+
});
3739
$this->table(['Snapshot', 'Active'], $snapshots);
3840
}
3941
}

0 commit comments

Comments
 (0)