Code Duplication    Length = 8-8 lines in 2 locations

src/Controller/Event.php 1 location

@@ 48-55 (lines=8) @@
45
46
            $result = [];
47
            $issues = [];
48
            foreach ($listeners as $nick => $listener) {
49
                $result[$nick] = $this->handleEvent($app, $listener, $info);
50
                try {
51
                    $event->fireChanges($nick);
52
                } catch (Exception $e) {
53
                    $issues[$nick] =  $e->getMessage();
54
                }
55
            }
56
57
58
            return [

src/Job/Module/Handle.php 1 location

@@ 65-72 (lines=8) @@
62
63
        $data = [];
64
        $issues = [];
65
        foreach ($listeners as $nick => $listener) {
66
            try {
67
                $data[$nick] = $app->call([$listener, 'run']);
68
                $event->fireChanges($nick);
69
            } catch (Exception $e) {
70
                $issues[$nick] =  $e->getMessage();
71
            }
72
        }
73
74
        $result = [
75
            'data' => $data,