matheustardivo/pagseguro_client

View on GitHub

Showing 1 of 1 total issue

Method create_by_xml has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def self.create_by_xml(xml)
      doc = Nokogiri::XML(xml)
      code = doc.xpath("//transaction/code").text
      order_id = doc.xpath("//reference").text
      status = doc.xpath("//status").text.to_i
Severity: Minor
Found in lib/pagseguro_client/transaction.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language