DebugKit\Panel\IncludePanel::_niceFileName PHP Method

_niceFileName() protected method

Replace the path with APP, CORE or the plugin name
protected _niceFileName ( string $file, string $type ) : boolean
$file string File to check
$type string The file type - app for app files - cake for cake files - PluginName for the name of a plugin
return boolean
    protected function _niceFileName($file, $type)
    {
        switch ($type) {
            case 'app':
                return str_replace(APP, 'APP/', $file);
            case 'cake':
                return str_replace(CAKE, 'CAKE/', $file);
            default:
                return str_replace($this->_pluginPaths[$type], $type . '/', $file);
        }
    }