swap() doesn't reflect $quantity when provided

As best as I can tell $quantity is never assigned, only checked on Line 136.
Revision to matching Taylor's coding style
Pass array of properties to merge with card token
Removed whitespace
Add branch alias.
Return invoices regardless of the subscription status.
Changed onGracePeriod check to return based on now() time instead of today() time for actuate subscription expirations.
Merge pull request #60 from paulrose/master

Changed onGracePeriod check
Merge pull request #58 from bramdevries/master

Return invoices regardless of the subscription status.
Merge pull request #54 from alexgarrett/master

Flexibility to pass in other customer properties when creating
Cleaning up some code.
Fix broken tests.
Merge pull request #50 from gstjohn/patch-1

swap() doesn't reflect $quantity when provided
Comments.
Fix formatting.