original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Updates the site dependencies.
  
  @param bool $preferLock
  @param bool $preferSource
  @param bool $noScripts
docstring_tokens: Updates the site dependencies .