original_string: public function install(string $path = null, bool $isDevMode = true, int $timeout = null)
      {
          if ($isDevMode) {
              $arguments = ['install'];
          } else {
              $arguments = ['install', '--production'];
          }
  
          if ($timeout === null) {
              $timeout = self::DEFAULT_TIMEOUT;
          }
  
          $this->executeNpm($arguments, $path, $timeout);
      }
code: public function install(string $path = null, bool $isDevMode = true, int $timeout = null)
      {
          if ($isDevMode) {
              $arguments = ['install'];
          } else {
              $arguments = ['install', '--production'];
          }
  
          if ($timeout === null) {
              $timeout = self::DEFAULT_TIMEOUT;
          }
  
          $this->executeNpm($arguments, $path, $timeout);
      }
code_tokens: public function install ( string $ path = null , bool $ isDevMode = true , int $ timeout = null ) { if ( $ isDevMode ) { $ arguments = [ 'install' ] ; } else { $ arguments = [ 'install' , '--production' ] ; } if ( $ timeout === null ) { $ timeout = self :: DEFAULT_TIMEOUT ; } $ this -> executeNpm ( $ arguments , $ path , $ timeout ) ; }
docstring: Install 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 bool        $isDevMode True if dev dependencies should be included.
  @param int|null    $timeout   The process timeout, in seconds.
  
  @throws NpmNotFoundException      If the npm executable cannot be located.
  @throws NpmCommandFailedException If the operation fails.
docstring_tokens: Install NPM dependencies for the project at the supplied path .