Code Duplication    Length = 5-5 lines in 2 locations

Model/Report/CliReportManager.php 1 location

@@ 52-56 (lines=5) @@
49
     */
50
    public function generateAndSendReportForCustomers(array $customerIds): void
51
    {
52
        foreach ($customerIds as $customerId) {
53
            $report = $this->reportGenerator->generateReport($customerId);
54
            $this->reportSender->sendReport($report);
55
            echo "Reporting process finished for customer: {$customerId}\n";
56
        }
57
    }
58
}
59

Model/Report/WebapiReportManager.php 1 location

@@ 53-57 (lines=5) @@
50
    public function generateAndSendReportForCustomers(array $customerIds): array
51
    {
52
        $messages = [];
53
        foreach ($customerIds as $customerId) {
54
            $report = $this->reportGenerator->generateReport($customerId);
55
            $this->reportSender->sendReport($report);
56
            $messages[] = "Reporting process finished for customer: {$customerId}\n";
57
        }
58
        return $messages;
59
    }
60
}