PhpMD fixes

Tackled the notices for VuDL.
- Simplified formatDetails
- Simplified getParentList
- Removed unused locals