Code Duplication    Length = 7-8 lines in 2 locations

src/Controller/DevelopersController.php 1 location

@@ 158-165 (lines=8) @@
155
     *
156
     * @return string augmented description
157
     */
158
    protected function _augmentDescription($description, $reportId)
159
    {
160
        $report = TableRegistry::get('Reports');
161
        $report->id = $reportId;
162
163
        return '$description\n\n\nThis report is related to user submitted report '
164
                . '[#' . $report->id . '](' . $report->getUrl()
165
                . ') on the phpmyadmin error reporting server.';
166
    }
167
}
168

src/Controller/GithubController.php 1 location

@@ 226-232 (lines=7) @@
223
     *
224
     * @return string augmented description
225
     */
226
    protected function _augmentDescription($description, $reportId)
227
    {
228
        $report = TableRegistry::get('Reports');
229
        $report->id = $reportId;
230
231
        return "$description\n\n\nThis report is related to user submitted report "
232
            . '[#' . $report->id . '](' . $report->getUrl()
233
            . ') on the phpmyadmin error reporting server.';
234
    }
235