Skip to content

Commit a90d2a7

Browse files
committed
refactor(pipes): rename ToHtmlPipe to SprintfHtmlPipe
- Rename ToHtmlPipe to SprintfHtmlPipe - Update references to the renamed class
1 parent 9f13366 commit a90d2a7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config/exception-notify.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Guanguans\LaravelExceptionNotify\Pipes\FixPrettyJsonPipe;
1515
use Guanguans\LaravelExceptionNotify\Pipes\LimitLengthPipe;
1616
use Guanguans\LaravelExceptionNotify\Pipes\ReplaceStrPipe;
17-
use Guanguans\LaravelExceptionNotify\Pipes\ToHtmlPipe;
17+
use Guanguans\LaravelExceptionNotify\Pipes\SprintfHtmlPipe;
1818
use Guanguans\LaravelExceptionNotify\Pipes\ToMarkdownPipe;
1919
use Guanguans\LaravelExceptionNotify\ReportUsingCreator;
2020

@@ -222,7 +222,7 @@
222222
'from' => env('EXCEPTION_NOTIFY_MAIL_FROM'),
223223
'to' => env('EXCEPTION_NOTIFY_MAIL_TO'),
224224
'pipes' => [
225-
ToHtmlPipe::class,
225+
SprintfHtmlPipe::class,
226226
],
227227
],
228228

src/Pipes/ToHtmlPipe.php renamed to src/Pipes/SprintfHtmlPipe.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Illuminate\Support\Collection;
1616
use Illuminate\Support\Stringable;
1717

18-
class ToHtmlPipe extends SprintfPipe
18+
class SprintfHtmlPipe extends SprintfPipe
1919
{
2020
public function handle(Collection $collectors, \Closure $next, string $format = '<pre>%s</pre>'): Stringable
2121
{

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
use Guanguans\LaravelExceptionNotify\Pipes\FixPrettyJsonPipe;
3535
use Guanguans\LaravelExceptionNotify\Pipes\LimitLengthPipe;
3636
use Guanguans\LaravelExceptionNotify\Pipes\ReplaceStrPipe;
37-
use Guanguans\LaravelExceptionNotify\Pipes\ToHtmlPipe;
37+
use Guanguans\LaravelExceptionNotify\Pipes\SprintfHtmlPipe;
3838
use Guanguans\LaravelExceptionNotify\Pipes\ToMarkdownPipe;
3939
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
4040
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
@@ -94,7 +94,7 @@ protected function defineEnvironment($app): void
9494
]);
9595
config()->set('exception-notify.channels.null.pipes', [
9696
hydrate_pipe(AddKeywordPipe::class, 'keyword'),
97-
ToHtmlPipe::class,
97+
SprintfHtmlPipe::class,
9898
ToMarkdownPipe::class,
9999
FixPrettyJsonPipe::class,
100100
hydrate_pipe(LimitLengthPipe::class, 512),

0 commit comments

Comments
 (0)