fix(parsers): remove unused $svc variable in dockercompose domain loop
Use array_keys() instead of key-value iteration since only the service name keys are needed for comparison. Addresses CodeRabbit review feedback.
This commit is contained in:
parent
7f46b2ed71
commit
8b12aae266
1 changed files with 1 additions and 1 deletions
|
|
@ -509,7 +509,7 @@ function applicationParser(Application $resource, int $pull_request_id = 0, ?int
|
|||
if ($resource->build_pack === 'dockercompose') {
|
||||
$normalizedFqdnFor = str($fqdnFor)->replace('-', '_')->replace('.', '_')->value();
|
||||
$serviceExists = false;
|
||||
foreach ($services as $serviceNameKey => $svc) {
|
||||
foreach (array_keys($services) as $serviceNameKey) {
|
||||
if (str($serviceNameKey)->replace('-', '_')->replace('.', '_')->value() === $normalizedFqdnFor) {
|
||||
$serviceExists = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue