public function getReadMe() { if ($this->hasRemoteData()) { return data_get($this->remoteData, 'details', ''); } $file = $this->getPath('README.md'); if (!file_exists($file)) { return ''; } else { return nl2br(file_get_contents($file)); } }