From 87c09525317add9d887cf0580f91feb8b1e970b7 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Mon, 18 Sep 2017 10:45:04 -0700 Subject: [PATCH] Apply formatting tool --- src/compiler/php_generator.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/compiler/php_generator.cc b/src/compiler/php_generator.cc index 9fa14d16840..6d9ff3a29c4 100644 --- a/src/compiler/php_generator.cc +++ b/src/compiler/php_generator.cc @@ -51,24 +51,25 @@ grpc::string PackageName(const FileDescriptor *file) { } } -grpc::string MessageIdentifierName(const grpc::string &name, const FileDescriptor *file) { +grpc::string MessageIdentifierName(const grpc::string &name, + const FileDescriptor *file) { std::vector tokens = grpc_generator::tokenize(name, "."); std::ostringstream oss; - oss << PackageName(file) - << "\\" + oss << PackageName(file) << "\\" << grpc_generator::CapitalizeFirstLetter(tokens[tokens.size() - 1]); return oss.str(); } - void PrintMethod(const MethodDescriptor *method, Printer *out) { const Descriptor *input_type = method->input_type(); const Descriptor *output_type = method->output_type(); map vars; vars["service_name"] = method->service()->full_name(); vars["name"] = method->name(); - vars["input_type_id"] = MessageIdentifierName(input_type->full_name(), input_type->file()); - vars["output_type_id"] = MessageIdentifierName(output_type->full_name(), output_type->file()); + vars["input_type_id"] = + MessageIdentifierName(input_type->full_name(), input_type->file()); + vars["output_type_id"] = + MessageIdentifierName(output_type->full_name(), output_type->file()); out->Print("/**\n"); out->Print(GetPHPComments(method, " *").c_str());