Skip to content

Commit

Permalink
Fix coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 authored and scheb committed Jan 26, 2024
1 parent 1783e49 commit 22275f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken;
use function interface_exists;
use function is_iterable;

/**
* @final
Expand Down Expand Up @@ -225,12 +226,14 @@ private function addGoogleAuthenticatorConfiguration(ArrayNodeDefinition $rootNo
}

/**
* @param iterable<mixed> $iterableValue
*
* @return iterable<mixed>
*/
private static function flatten(array $arrayValue): iterable
private static function flatten(iterable $iterableValue): iterable
{
foreach ($arrayValue as $value) {
if (is_array($value)) {
foreach ($iterableValue as $value) {
if (is_iterable($value)) {
foreach (self::flatten($value) as $x) {
yield $x;
}
Expand Down

0 comments on commit 22275f8

Please sign in to comment.