Skip to content

Commit 73e0e20

Browse files
arukompasgithub-actions[bot]
authored andcommitted
Fix styling
1 parent bc098d6 commit 73e0e20

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

config/log-viewer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
use Opcodes\LogViewer\Enums\Theme;
43
use Opcodes\LogViewer\Enums\FolderSortingMethod;
54
use Opcodes\LogViewer\Enums\SortingOrder;
5+
use Opcodes\LogViewer\Enums\Theme;
66

77
return [
88

@@ -258,10 +258,10 @@
258258
'per_page' => 25,
259259

260260
// Other options: `System`, `Light`, `Dark`
261-
'theme' => Theme::System,
261+
'theme' => Theme::System,
262262

263263
// Whether to enable `shorter_stack_traces` by default
264264
'shorter_stack_traces' => true,
265265

266-
]
266+
],
267267
];

src/Enums/FolderSortingMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ enum FolderSortingMethod: string
66
{
77
case Alphabetical = 'Alphabetical';
88
case ModifiedTime = 'ModifiedTime';
9-
}
9+
}

src/Enums/SortingOrder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ enum SortingOrder: string
66
{
77
case Ascending = 'asc';
88
case Descending = 'desc';
9-
}
9+
}

src/Enums/Theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ enum Theme: string
77
case System = 'System';
88
case Light = 'Light';
99
case Dark = 'Dark';
10-
}
10+
}

src/LogFolderCollection.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,33 +50,37 @@ public function sortAlphabeticallyAsc(): self
5050
{
5151
$this->items = collect($this->items)
5252
->sort(function (LogFolder $a, LogFolder $b) {
53-
if ($a->isRoot() && !$b->isRoot()) {
53+
if ($a->isRoot() && ! $b->isRoot()) {
5454
return -1;
5555
}
56-
if (!$a->isRoot() && $b->isRoot()) {
56+
if (! $a->isRoot() && $b->isRoot()) {
5757
return 1;
5858
}
59+
5960
return strcmp($a->cleanPath(), $b->cleanPath());
6061
})
6162
->values()
6263
->toArray();
64+
6365
return $this;
6466
}
6567

6668
public function sortAlphabeticallyDesc(): self
6769
{
6870
$this->items = collect($this->items)
6971
->sort(function (LogFolder $a, LogFolder $b) {
70-
if ($a->isRoot() && !$b->isRoot()) {
72+
if ($a->isRoot() && ! $b->isRoot()) {
7173
return -1;
7274
}
73-
if (!$a->isRoot() && $b->isRoot()) {
75+
if (! $a->isRoot() && $b->isRoot()) {
7476
return 1;
7577
}
78+
7679
return strcmp($b->cleanPath(), $a->cleanPath());
7780
})
7881
->values()
7982
->toArray();
83+
8084
return $this;
8185
}
8286
}

0 commit comments

Comments
 (0)