Skip to content

Commit 4232a01

Browse files
committed
refactor(pipes): rename ToMarkdownPipe to SprintfMarkdownPipe
- Rename ToMarkdownPipe to SprintfMarkdownPipe - Update references to the renamed class
1 parent a90d2a7 commit 4232a01

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

config/exception-notify.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Guanguans\LaravelExceptionNotify\Pipes\LimitLengthPipe;
1616
use Guanguans\LaravelExceptionNotify\Pipes\ReplaceStrPipe;
1717
use Guanguans\LaravelExceptionNotify\Pipes\SprintfHtmlPipe;
18-
use Guanguans\LaravelExceptionNotify\Pipes\ToMarkdownPipe;
18+
use Guanguans\LaravelExceptionNotify\Pipes\SprintfMarkdownPipe;
1919
use Guanguans\LaravelExceptionNotify\ReportUsingCreator;
2020

2121
return [
@@ -236,7 +236,7 @@
236236
'token' => env('EXCEPTION_NOTIFY_PUSHDEER_TOKEN'),
237237
'base_uri' => env('EXCEPTION_NOTIFY_PUSHDEER_BASE_URI'),
238238
'pipes' => [
239-
ToMarkdownPipe::class,
239+
SprintfMarkdownPipe::class,
240240
],
241241
],
242242

@@ -280,7 +280,7 @@
280280
'webhook_url' => env('EXCEPTION_NOTIFY_SLACK_WEBHOOK_URL'),
281281
'channel' => env('EXCEPTION_NOTIFY_SLACK_CHANNEL'),
282282
'pipes' => [
283-
ToMarkdownPipe::class,
283+
SprintfMarkdownPipe::class,
284284
],
285285
],
286286

@@ -323,7 +323,7 @@
323323
'type' => env('EXCEPTION_NOTIFY_XIZHI_TYPE', 'single'), // [single, channel]
324324
'token' => env('EXCEPTION_NOTIFY_XIZHI_TOKEN'),
325325
'pipes' => [
326-
ToMarkdownPipe::class,
326+
SprintfMarkdownPipe::class,
327327
],
328328
],
329329
],

src/Pipes/ToMarkdownPipe.php renamed to src/Pipes/SprintfMarkdownPipe.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 ToMarkdownPipe extends SprintfPipe
18+
class SprintfMarkdownPipe extends SprintfPipe
1919
{
2020
public function handle(
2121
Collection $collectors,

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
use Guanguans\LaravelExceptionNotify\Pipes\LimitLengthPipe;
3636
use Guanguans\LaravelExceptionNotify\Pipes\ReplaceStrPipe;
3737
use Guanguans\LaravelExceptionNotify\Pipes\SprintfHtmlPipe;
38-
use Guanguans\LaravelExceptionNotify\Pipes\ToMarkdownPipe;
38+
use Guanguans\LaravelExceptionNotify\Pipes\SprintfMarkdownPipe;
3939
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
4040
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
4141

@@ -95,7 +95,7 @@ protected function defineEnvironment($app): void
9595
config()->set('exception-notify.channels.null.pipes', [
9696
hydrate_pipe(AddKeywordPipe::class, 'keyword'),
9797
SprintfHtmlPipe::class,
98-
ToMarkdownPipe::class,
98+
SprintfMarkdownPipe::class,
9999
FixPrettyJsonPipe::class,
100100
hydrate_pipe(LimitLengthPipe::class, 512),
101101
hydrate_pipe(ReplaceStrPipe::class, '.php', '.PHP'),

0 commit comments

Comments
 (0)