Code Duplication    Length = 6-6 lines in 2 locations

src/Controller/DevelopersController.php 1 location

@@ 112-117 (lines=6) @@
109
            throw new NotFoundException(__('Invalid report'));
110
        }
111
112
        if (empty($this->request->data)) {
113
            $this->set('pma_version', $report[0]['pma_version']);
114
            $this->set('error_name', $report[0]['error_name']);
115
            $this->set('error_message', $report[0]['error_message']);
116
117
            return;
118
        }
119
        $data = array(
120
            'title' => $this->request->data['summary'],

src/Controller/GithubController.php 1 location

@@ 66-71 (lines=6) @@
63
            throw new NotFoundException(__('Invalid report'));
64
        }
65
66
        if (empty($this->request->data)) {
67
            $this->set('pma_version', $report[0]['pma_version']);
68
            $this->set('error_name', $report[0]['error_name']);
69
            $this->set('error_message', $report[0]['error_message']);
70
71
            return;
72
        }
73
        $data = array(
74
            'title' => $this->request->data['summary'],