Code Duplication    Length = 8-8 lines in 2 locations

src/Renderer/PlainRenderer.php 1 location

@@ 84-91 (lines=8) @@
81
        }
82
    }
83
84
    protected static function renderCss()
85
    {
86
        if (file_exists(KINT_DIR.'/resources/compiled/'.self::$theme)) {
87
            return file_get_contents(KINT_DIR.'/resources/compiled/'.self::$theme);
88
        } else {
89
            return file_get_contents(self::$theme);
90
        }
91
    }
92
93
    public function preRender()
94
    {

src/Renderer/RichRenderer.php 1 location

@@ 346-353 (lines=8) @@
343
        return file_get_contents(KINT_DIR.'/resources/compiled/rich.js');
344
    }
345
346
    protected static function renderCss()
347
    {
348
        if (file_exists(KINT_DIR.'/resources/compiled/'.self::$theme)) {
349
            return file_get_contents(KINT_DIR.'/resources/compiled/'.self::$theme);
350
        } else {
351
            return file_get_contents(self::$theme);
352
        }
353
    }
354
355
    protected static function renderFolder()
356
    {