original_string: private function executeComposerInstall($host)
      {
          $ssh = $host->getSshClient();
          $ssh->exec(array(
              sprintf('cd %s;', $host->getWorkingDirectory()),
              'stat composer.phar'
          ));
          if ($ssh->getExitCode()) {
              $this->installComposer($host);
          }
          $ssh = $host->getSshClient();
          $ssh->exec(
              array(
                  sprintf('cd %s;', $host->getWorkingDirectory()),
                  'php composer.phar install --no-dev'
              ),
              null,
              self::TIMEOUT_MAX_RUNTIME_COMPOSER_INSTALL
          );
          if ($ssh->getExitCode()) {
              throw new SynchronisationException($host->getName(), sprintf(
                  'Unable to execute composer install: "%s".',
                  $ssh->getErrorOutput()
              ));
          }
      }
code: private function executeComposerInstall($host)
      {
          $ssh = $host->getSshClient();
          $ssh->exec(array(
              sprintf('cd %s;', $host->getWorkingDirectory()),
              'stat composer.phar'
          ));
          if ($ssh->getExitCode()) {
              $this->installComposer($host);
          }
          $ssh = $host->getSshClient();
          $ssh->exec(
              array(
                  sprintf('cd %s;', $host->getWorkingDirectory()),
                  'php composer.phar install --no-dev'
              ),
              null,
              self::TIMEOUT_MAX_RUNTIME_COMPOSER_INSTALL
          );
          if ($ssh->getExitCode()) {
              throw new SynchronisationException($host->getName(), sprintf(
                  'Unable to execute composer install: "%s".',
                  $ssh->getErrorOutput()
              ));
          }
      }
code_tokens: private function executeComposerInstall ( $ host ) { $ ssh = $ host -> getSshClient ( ) ; $ ssh -> exec ( array ( sprintf ( 'cd %s;' , $ host -> getWorkingDirectory ( ) ) , 'stat composer.phar' ) ) ; if ( $ ssh -> getExitCode ( ) ) { $ this -> installComposer ( $ host ) ; } $ ssh = $ host -> getSshClient ( ) ; $ ssh -> exec ( array ( sprintf ( 'cd %s;' , $ host -> getWorkingDirectory ( ) ) , 'php composer.phar install --no-dev' ) , null , self :: TIMEOUT_MAX_RUNTIME_COMPOSER_INSTALL ) ; if ( $ ssh -> getExitCode ( ) ) { throw new SynchronisationException ( $ host -> getName ( ) , sprintf ( 'Unable to execute composer install: "%s".' , $ ssh -> getErrorOutput ( ) ) ) ; } }
docstring: Execute composer install from the host's working directory. Install
  composer to the working directory if it isn't already installed there.
docstring_tokens: Execute composer install from the host s working directory . Install composer to the working directory if it isn t already installed there .