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);
        }
    }
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);
        }
    }
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 ) ; } }
Updates the site dependencies.

@param bool $preferLock
@param bool $preferSource
@param bool $noScripts
Updates the site dependencies .