Fix foreach loop syntax in job processing

Updated the foreach loop to remove unnecessary reference. Cleaned up code for better readability while processing job data.
This commit is contained in:
Jeroen De Meerleer 2025-01-18 12:09:31 +01:00
parent bcbf7d3e61
commit d152870703

View File

@ -74,7 +74,7 @@ class JobRepository extends EntityRepository
{
$runRepo = $this->getEntityManager()->getRepository(Run::class);
$return = [];
foreach ($jobs as $key=>&$job) {
foreach ($jobs as $key=>$job) {
$jobData = $job->getData();
$job->setData('host-displayname', $jobData['host']);
$job->setData('host', $jobData['host']);