original_string: public function getDigitalOcean($file = self::DEFAULT_CREDENTIALS_FILE)
      {
          if (!file_exists($file)) {
              throw new \RuntimeException(sprintf('Impossible to get credentials informations in %s', $file));
          }
  
          $credentials = Yaml::parse($file);
  
          return new DigitalOcean(new Credentials($credentials['CLIENT_ID'], $credentials['API_KEY']));
      }
code: public function getDigitalOcean($file = self::DEFAULT_CREDENTIALS_FILE)
      {
          if (!file_exists($file)) {
              throw new \RuntimeException(sprintf('Impossible to get credentials informations in %s', $file));
          }
  
          $credentials = Yaml::parse($file);
  
          return new DigitalOcean(new Credentials($credentials['CLIENT_ID'], $credentials['API_KEY']));
      }
code_tokens: public function getDigitalOcean ( $ file = self :: DEFAULT_CREDENTIALS_FILE ) { if ( ! file_exists ( $ file ) ) { throw new \ RuntimeException ( sprintf ( 'Impossible to get credentials informations in %s' , $ file ) ) ; } $ credentials = Yaml :: parse ( $ file ) ; return new DigitalOcean ( new Credentials ( $ credentials [ 'CLIENT_ID' ] , $ credentials [ 'API_KEY' ] ) ) ; }
docstring: Returns an instance of DigitalOcean
  
  @param string $file The file with credentials.
  
  @return DigitalOcean An instance of DigitalOcean
  
  @throws \RuntimeException
docstring_tokens: Returns an instance of DigitalOcean