While you're there please break this line to:
```
$i['mimetype_icon'] = ($i['type'] === 'dir') 
     ? \mimetype_icon('dir')
     : \mimetype_icon($i['mimetype']); 
```
The extra paranthesis are not strictly needed, but improves readability