Code Duplication    Length = 7-7 lines in 2 locations

core/exceptions/ExceptionStackTraceDisplay.php 1 location

@@ 318-324 (lines=7) @@
315
     * @param string $line
316
     * @return string
317
     */
318
    protected function generate_error_code($file = '', $func = '', $line = '')
319
    {
320
        $file_bits = explode('.', basename($file));
321
        $error_code = ! empty($file_bits[0]) ? $file_bits[0] : '';
322
        $error_code .= ! empty($func) ? ' - ' . $func : '';
323
        $error_code .= ! empty($line) ? ' - ' . $line : '';
324
        return $error_code;
325
    }
326
327

core/EE_Error.core.php 1 location

@@ 1066-1072 (lines=7) @@
1063
     * @param string $line
1064
     * @return string
1065
     */
1066
    public static function generate_error_code($file = '', $func = '', $line = '')
1067
    {
1068
        $file       = explode('.', basename($file));
1069
        $error_code = ! empty($file[0]) ? $file[0] : '';
1070
        $error_code .= ! empty($func) ? ' - ' . $func : '';
1071
        $error_code .= ! empty($line) ? ' - ' . $line : '';
1072
        return $error_code;
1073
    }
1074
1075