Code Duplication    Length = 6-6 lines in 2 locations

src/Controller/GithubController.php 1 location

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

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'],