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
			return;
69
		}
70
        $data = array(
71
			'title' => $this->request->data['summary'],
72
            'body'  => $this->_augmentDescription(

src/Controller/DevelopersController.php 1 location

@@ 107-112 (lines=6) @@
104
				throw new NotFoundException(__('Invalid report'));
105
		}
106
107
		if (empty($this->request->data)) {
108
			$this->set('pma_version', $report[0]['pma_version']);
109
            $this->set('error_name', $report[0]['error_name']);
110
            $this->set('error_message', $report[0]['error_message']);
111
			return;
112
		}
113
        $data = array(
114
			'title' => $this->request->data['summary'],
115
            'body'  => $this->_augmentDescription(