Skip to content

Commit

Permalink
bot: fix cs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jan 1, 2025
1 parent 66f22d4 commit 1ec40a2
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,11 @@ private static function createEmailExtension(string $name, string $description):
->canBeEnabled()
->beforeNormalization()
->ifString()
->then(function($v) {
return [
'enabled' => true,
'to' => $v,
'subject' => null,
];
})
->then(fn($v) => [
'enabled' => true,
'to' => $v,
'subject' => null,
])
->end()
->children()
->scalarNode('to')
Expand Down Expand Up @@ -376,14 +374,12 @@ private static function createPingExtension(string $name, string $description):
->canBeEnabled()
->beforeNormalization()
->ifString()
->then(function($v) {
return [
'enabled' => true,
'url' => $v,
'method' => 'GET',
'options' => [],
];
})
->then(fn($v) => [
'enabled' => true,
'url' => $v,
'method' => 'GET',
'options' => [],
])
->end()
->children()
->scalarNode('url')
Expand Down

0 comments on commit 1ec40a2

Please sign in to comment.