Skip to content

Commit

Permalink
Update app/Models/WebhookConfiguration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pelican-vehikl authored Dec 12, 2024
1 parent d150c21 commit 0dc3904
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Models/WebhookConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,7 @@ public static function transformClassName(string $event): string
->after('eloquent.')
->replace('App\\Models\\', '')
->replace('App\\Events\\', 'event: ')
->replaceMatches('/Illuminate\\\\([A-z]+)\\\\Events\\\\/', function (array $matches) {
return strtolower($matches[1]) . ': ';
})
->replaceMatches('/Illuminate\\\\([A-z]+)\\\\Events\\\\/', fn (array $matches) => strtolower($matches[1]) . ': ')
->toString();
}

Expand Down

0 comments on commit 0dc3904

Please sign in to comment.