protected function setComposerFileContent(array $content) { $composerFilePath = $this->getComposerFilePath(); if (!empty($composerFilePath)) { file_put_contents($composerFilePath, self::encodeToJson($content)); } return $this; }