Skip to content

Commit 387a522

Browse files
Naoraygithub-actions[bot]
authored andcommitted
Fix styling
1 parent bf9cfd1 commit 387a522

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Issues/Formatters/PreviousExceptionFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
use Illuminate\Support\Str;
66
use Monolog\LogRecord;
7-
use Throwable;
87
use Naoray\LaravelGithubMonolog\Issues\InteractsWithLogRecord;
98
use Naoray\LaravelGithubMonolog\Issues\StubLoader;
9+
use Throwable;
1010

1111
class PreviousExceptionFormatter
1212
{

src/Issues/SectionMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function getSectionsToRemove(array $replacements): array
2020
{
2121
return collect(self::SECTION_MAPPINGS)
2222
->when(empty($replacements), fn (Collection $collection) => $collection->values()->unique())
23-
->when(!empty($replacements), function (Collection $collection) use ($replacements) {
23+
->when(! empty($replacements), function (Collection $collection) use ($replacements) {
2424
return $collection
2525
->filter(fn (string $_, string $placeholder) => isset($replacements[$placeholder]) && empty($replacements[$placeholder]))
2626
->values()

src/Issues/TemplateRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
public function render(string $template, LogRecord $record, ?string $signature = null): string
3333
{
3434
$replacements = $this->buildReplacements($record, $signature);
35-
35+
3636
return $this->sectionCleaner->clean($template, $replacements);
3737
}
3838

tests/Issues/TemplateRendererTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Naoray\LaravelGithubMonolog\Issues\TemplateRenderer;
55

66
beforeEach(function () {
7-
$this->stubLoader = new StubLoader();
7+
$this->stubLoader = new StubLoader;
88
$this->renderer = resolve(TemplateRenderer::class);
99
});
1010

tests/Issues/TemplateSectionCleanerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Naoray\LaravelGithubMonolog\Issues\TemplateSectionCleaner;
44

55
beforeEach(function () {
6-
$this->cleaner = new TemplateSectionCleaner();
6+
$this->cleaner = new TemplateSectionCleaner;
77
});
88

99
test('it replaces template variables', function () {
@@ -150,7 +150,7 @@
150150
$replacements = [
151151
'{simplified_stack_trace}' => 'Stack trace content',
152152
'{context}' => '{"key": "value"}',
153-
'{extra}' => 'Extra data'
153+
'{extra}' => 'Extra data',
154154
];
155155

156156
$result = $this->cleaner->clean($template, $replacements);

0 commit comments

Comments
 (0)