replaced getCacheDirectory() by getDirectoryPath()
replaced 'cacheDirectory' param & var by 'directoryPath'
replaced setCacheDirectory() by setDirectoryPath()
PSR2 formating fixes