public function injectLine($contents, $lineToAdd)
    {
        if (strpos($contents, self::PLACEHOLDER) === false) {
            throw new \RuntimeException('Failed to find placeholder in config file, file might be malformed');
        }

        return str_replace(self::PLACEHOLDER, $lineToAdd."\n".self::PLACEHOLDER, $contents);
    }