protected function updateDependencies($preferLock, $preferSource, $noScripts)
    {
        $pmOptions = [
            'prefer-source' => $preferSource,
            'prefer-dist' => !$preferSource,
            'no-scripts' => $noScripts,
        ];

        if ($preferLock === true) {
            $this->packageManager->install($pmOptions);
        } else {
            $this->packageManager->update($pmOptions);
        }
    }