MakeYourLaws/MakeYourLaws

View on GitHub
app/models/payments/stripe/charge.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method charge has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def charge options
    fail ArgumentError unless options[:amount] >= 50 && # 50 cents minimum
      (!!options[:token] ^ !!options[:customer]) # boolean-coerced xor

    begin
Severity: Minor
Found in app/models/payments/stripe/charge.rb - About 1 hr to fix
  • Create a ticket

    There are no issues that match your filters.

    Category
    Status