Skip to content

Commit e2dfe34

Browse files
committed
fix: stub trait
1 parent 665c392 commit e2dfe34

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Commands/Traits/StubTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function getStubContents($stubPath): string
215215

216216
public function getReplaceKeys($content): ?array
217217
{
218-
preg_match_all('/(\$[^\s.]*?\$)/', $content, $matches);
218+
preg_match_all('/(\$[^\s.>\[]*?\$)/', $content, $matches);
219219

220220
$keys = $matches[1] ?? [];
221221

@@ -289,7 +289,7 @@ public function getAuthorNameReplacement(): mixed
289289
return 'Fresns';
290290
}
291291

292-
public function getAuthorLinkReplacement(): mixed
292+
public function getAuthorUrlReplacement(): mixed
293293
{
294294
$authors = config('plugins.composer.author');
295295
if (count($authors)) {

src/Commands/stubs/database/migrations/init_plugin_config.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ return new class extends Migration
3838
// \FresnsCmdWord::plugin()->addSubscribeItem($this->fresnsWordBody);
3939

4040
// addKeyValues to Config table
41-
// ConfigUtility::addFresnsConfigItems($this->fresnsConfigItems);
41+
// ConfigUtility::changeFresnsConfigItems($this->fresnsConfigItems);
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)