Skip to content

Commit

Permalink
corrected indentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
g30rg committed Jul 25, 2017
1 parent cb21125 commit 5e4b952
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions lib/recurly/adjustment.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ protected function getNodeName() {

protected function getWriteableAttributes() {
return array(
'currency', 'unit_amount_in_cents', 'quantity', 'description',
'accounting_code', 'tax_exempt', 'tax_code', 'start_date', 'end_date',
'revenue_schedule_type', 'origin', 'product_code'
'currency', 'unit_amount_in_cents', 'quantity', 'description',
'accounting_code', 'tax_exempt', 'tax_code', 'start_date', 'end_date',
'revenue_schedule_type', 'origin', 'product_code'
);
}
}
24 changes: 12 additions & 12 deletions lib/recurly/subscription_addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ protected function getNodeName() {

protected function getWriteableAttributes() {
return array(
'add_on_code',
'quantity',
'unit_amount_in_cents',
'add_on_type',
'usage_type',
'usage_percentage',
'revenue_schedule_type',
'add_on_code',
'quantity',
'unit_amount_in_cents',
'add_on_type',
'usage_type',
'usage_percentage',
'revenue_schedule_type',
);
}

Expand All @@ -35,11 +35,11 @@ protected function populateXmlDoc(&$doc, &$node, &$obj, $nested = false) {
protected function getChangedAttributes($nested = false) {
// Ignore attributes that can't be updated
$immutable = array(
'name' => 0,
'add_on_type' => 0,
'usage_type' => 0,
'usage' => 0,
'measured_unit' => 0,
'name' => 0,
'add_on_type' => 0,
'usage_type' => 0,
'usage' => 0,
'measured_unit' => 0,
);
return array_diff_key($this->_values, $immutable);
}
Expand Down

0 comments on commit 5e4b952

Please sign in to comment.