Skip to content

Commit 7c32fca

Browse files
Consistently throw exceptions on a single line
1 parent a34e30a commit 7c32fca

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

DependencyInjection/Security/Factory/GuardAuthenticationFactory.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ private function determineEntryPoint($defaultEntryPointId, array $config)
9494
if ($defaultEntryPointId) {
9595
// explode if they've configured the entry_point, but there is already one
9696
if ($config['entry_point']) {
97-
throw new \LogicException(sprintf(
98-
'The guard authentication provider cannot use the "%s" entry_point because another entry point is already configured by another provider! Either remove the other provider or move the entry_point configuration as a root key under your firewall (i.e. at the same level as "guard").',
99-
$config['entry_point']
100-
));
97+
throw new \LogicException(sprintf('The guard authentication provider cannot use the "%s" entry_point because another entry point is already configured by another provider! Either remove the other provider or move the entry_point configuration as a root key under your firewall (i.e. at the same level as "guard").', $config['entry_point']));
10198
}
10299

103100
return $defaultEntryPointId;
@@ -115,9 +112,6 @@ private function determineEntryPoint($defaultEntryPointId, array $config)
115112
}
116113

117114
// we have multiple entry points - we must ask them to configure one
118-
throw new \LogicException(sprintf(
119-
'Because you have multiple guard configurators, you need to set the "guard.entry_point" key to one of your configurators (%s)',
120-
implode(', ', $authenticatorIds)
121-
));
115+
throw new \LogicException(sprintf('Because you have multiple guard configurators, you need to set the "guard.entry_point" key to one of your configurators (%s)', implode(', ', $authenticatorIds)));
122116
}
123117
}

0 commit comments

Comments
 (0)