Code Duplication    Length = 8-8 lines in 2 locations

src/Renderer/PlainRenderer.php 1 location

@@ 68-75 (lines=8) @@
65
        }
66
    }
67
68
    protected static function renderCss()
69
    {
70
        if (file_exists(KINT_DIR.'/resources/compiled/'.self::$theme)) {
71
            return file_get_contents(KINT_DIR.'/resources/compiled/'.self::$theme);
72
        } else {
73
            return file_get_contents(self::$theme);
74
        }
75
    }
76
77
    public function preRender()
78
    {

src/Renderer/RichRenderer.php 1 location

@@ 313-320 (lines=8) @@
310
        return file_get_contents(KINT_DIR.'/resources/compiled/rich.js');
311
    }
312
313
    protected static function renderCss()
314
    {
315
        if (file_exists(KINT_DIR.'/resources/compiled/'.self::$theme)) {
316
            return file_get_contents(KINT_DIR.'/resources/compiled/'.self::$theme);
317
        } else {
318
            return file_get_contents(self::$theme);
319
        }
320
    }
321
322
    protected static function renderFolder()
323
    {