Code Duplication    Length = 5-5 lines in 2 locations

src/Service/Dashboard/DashboardService.php 2 locations

@@ 32-36 (lines=5) @@
29
        $response = $this->delegate($request);
30
31
        $mostActiveUsers = array();
32
        if (!empty($response->body['most_active_user'])) {
33
            foreach($response->body['most_active_user'] as $mostActiveUser) {
34
                $mostActiveUsers[] = $this->hydrator->hydrate($mostActiveUser, new MostActiveUser());
35
            }
36
        }
37
38
        $activities = array();
39
        if (!empty($response->body['activity'])) {
@@ 39-43 (lines=5) @@
36
        }
37
38
        $activities = array();
39
        if (!empty($response->body['activity'])) {
40
            foreach ($response->body['activity'] as $activity) {
41
                $activities[] = $this->hydrator->hydrate($activity, new Activity());
42
            }
43
        }
44
45
        $dashboard = new Dashboard(
46
            array(