protected function _prepare()
{
$return = ['cake' => [], 'app' => [], 'plugins' => []];
foreach (get_included_files() as $file) {
$pluginName = $this->_isPluginFile($file);
if ($pluginName) {
$return['plugins'][$pluginName][$this->_getFileType($file)][] = $this->_niceFileName($file, $pluginName);
} elseif ($this->_isAppFile($file)) {
$return['app'][$this->_getFileType($file)][] = $this->_niceFileName($file, 'app');
} elseif ($this->_isCakeFile($file)) {
$return['cake'][$this->_getFileType($file)][] = $this->_niceFileName($file, 'cake');
}
}
$return['paths'] = $this->_includePaths();
ksort($return['cake']);
ksort($return['plugins']);
ksort($return['app']);
return $return;
}