original_string: public function update(string $path = null, int $timeout = null)
      {
          if ($timeout === null) {
              $timeout = self::DEFAULT_TIMEOUT;
          }
  
          $this->executeNpm(['update'], $path, $timeout);
      }
code: public function update(string $path = null, int $timeout = null)
      {
          if ($timeout === null) {
              $timeout = self::DEFAULT_TIMEOUT;
          }
  
          $this->executeNpm(['update'], $path, $timeout);
      }
code_tokens: public function update ( string $ path = null , int $ timeout = null ) { if ( $ timeout === null ) { $ timeout = self :: DEFAULT_TIMEOUT ; } $ this -> executeNpm ( [ 'update' ] , $ path , $ timeout ) ; }
docstring: Update NPM dependencies for the project at the supplied path.
  
  @param string|null $path    The path to the NPM project, or null to use the current working directory.
  @param int         $timeout The process timeout, in seconds.
  
  @throws NpmNotFoundException      If the npm executable cannot be located.
  @throws NpmCommandFailedException If the operation fails.
docstring_tokens: Update NPM dependencies for the project at the supplied path .