config->load(); $configUrls = $this->config->get('urls_results_batch', '[]'); $configUrls = json_decode($configUrls, true); if (!empty($configUrls)) { if (!empty($configUrls[$testId])) unset($configUrls[$testId]); $this->config->save(['urls_results_batch' => json_encode($configUrls)]); } $result = json_decode($result, true); $testService = new TestService(); $testService->handleBatchResults($testId, $result); exit; } }