DebugKit\Panel\IncludePanel::_getFileType PHP Method

_getFileType() protected method

Get the type of file (model, controller etc)
protected _getFileType ( string $file ) : string
$file string File to check.
return string
    protected function _getFileType($file)
    {
        foreach ($this->_fileTypes as $type) {
            if (stripos($file, DIRECTORY_SEPARATOR . $type . DIRECTORY_SEPARATOR) !== false) {
                return $type;
            }
        }
        return 'Other';
    }