original_string: public function makeFromEnvironment()
      {
          $env = new EnvUtils();
  
          // Check that we have all variables we need
          if (!$env->hasBearerKey()) {
              throw new Exception(
                  'TUTUM_AUTH is not set. Unable to create from environment'
              );
          }
  
          $client = new Client('', '');
          $client->setBearerKey($env->getBearerKey());
  
          return $client;
      }
code: public function makeFromEnvironment()
      {
          $env = new EnvUtils();
  
          // Check that we have all variables we need
          if (!$env->hasBearerKey()) {
              throw new Exception(
                  'TUTUM_AUTH is not set. Unable to create from environment'
              );
          }
  
          $client = new Client('', '');
          $client->setBearerKey($env->getBearerKey());
  
          return $client;
      }
code_tokens: public function makeFromEnvironment ( ) { $ env = new EnvUtils ( ) ; // Check that we have all variables we need if ( ! $ env -> hasBearerKey ( ) ) { throw new Exception ( 'TUTUM_AUTH is not set. Unable to create from environment' ) ; } $ client = new Client ( '' , '' ) ; $ client -> setBearerKey ( $ env -> getBearerKey ( ) ) ; return $ client ; }
docstring: Build a client using configuration from the environment
  
  @return Client
  @throws Exception
docstring_tokens: Build a client using configuration from the environment