protected function getContents() { $file = $this->getFilepath(); $file = $this->bash->getFile($file) ?: '{}'; $file = (array) json_decode($file, true); return $file; }