original_string: public function formatBillingAddress(ClientBillingAddress $address, $lineSeparator = self::LINES_SEPARATOR)
      {
          $lines   = [];
          $lines[] = sprintf('%s %s', $address->getFirstName(), $address->getLastName());
          if ('' !== $address->getCompanyName()) {
              $lines[] = $address->getCompanyName();
          }
          $lines[] = $address->getLine1();
          $lines[] = $address->getLine2();
          $lines[] = sprintf('%s, %s %s', $address->getCountry(), $address->getPostalCode(), $address->getCity());
          
          return implode($lineSeparator, $lines);
      }
code: public function formatBillingAddress(ClientBillingAddress $address, $lineSeparator = self::LINES_SEPARATOR)
      {
          $lines   = [];
          $lines[] = sprintf('%s %s', $address->getFirstName(), $address->getLastName());
          if ('' !== $address->getCompanyName()) {
              $lines[] = $address->getCompanyName();
          }
          $lines[] = $address->getLine1();
          $lines[] = $address->getLine2();
          $lines[] = sprintf('%s, %s %s', $address->getCountry(), $address->getPostalCode(), $address->getCity());
          
          return implode($lineSeparator, $lines);
      }
code_tokens: public function formatBillingAddress ( ClientBillingAddress $ address , $ lineSeparator = self :: LINES_SEPARATOR ) { $ lines = [ ] ; $ lines [ ] = sprintf ( '%s %s' , $ address -> getFirstName ( ) , $ address -> getLastName ( ) ) ; if ( '' !== $ address -> getCompanyName ( ) ) { $ lines [ ] = $ address -> getCompanyName ( ) ; } $ lines [ ] = $ address -> getLine1 ( ) ; $ lines [ ] = $ address -> getLine2 ( ) ; $ lines [ ] = sprintf ( '%s, %s %s' , $ address -> getCountry ( ) , $ address -> getPostalCode ( ) , $ address -> getCity ( ) ) ; return implode ( $ lineSeparator , $ lines ) ; }
docstring: Formats the billing address
  
  @param ClientBillingAddress $address
  @param string               $lineSeparator
  
  @return string
docstring_tokens: Formats the billing address