Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix phpdoc of nested resources #591

Merged
merged 1 commit into from
Jan 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function deauthorize($clientId = null, $opts = null)
}

/**
* @param array|null $id The ID of the account on which to create the external account.
* @param string|null $id The ID of the account on which to create the external account.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -152,7 +152,7 @@ public static function createExternalAccount($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the account to which the external account belongs.
* @param string|null $id The ID of the account to which the external account belongs.
* @param array|null $externalAccountId The ID of the external account to retrieve.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -165,7 +165,7 @@ public static function retrieveExternalAccount($id, $externalAccountId, $params
}

/**
* @param array|null $id The ID of the account to which the external account belongs.
* @param string|null $id The ID of the account to which the external account belongs.
* @param array|null $externalAccountId The ID of the external account to update.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -178,7 +178,7 @@ public static function updateExternalAccount($id, $externalAccountId, $params =
}

/**
* @param array|null $id The ID of the account to which the external account belongs.
* @param string|null $id The ID of the account to which the external account belongs.
* @param array|null $externalAccountId The ID of the external account to delete.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -191,7 +191,7 @@ public static function deleteExternalAccount($id, $externalAccountId, $params =
}

/**
* @param array|null $id The ID of the account on which to retrieve the external accounts.
* @param string|null $id The ID of the account on which to retrieve the external accounts.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -203,7 +203,7 @@ public static function allExternalAccounts($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the account on which to create the login link.
* @param string|null $id The ID of the account on which to create the login link.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -215,7 +215,7 @@ public static function createLoginLink($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the account on which to create the person.
* @param string|null $id The ID of the account on which to create the person.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -227,7 +227,7 @@ public static function createPerson($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the account to which the person belongs.
* @param string|null $id The ID of the account to which the person belongs.
* @param array|null $personId The ID of the person to retrieve.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -240,7 +240,7 @@ public static function retrievePerson($id, $personId, $params = null, $opts = nu
}

/**
* @param array|null $id The ID of the account to which the person belongs.
* @param string|null $id The ID of the account to which the person belongs.
* @param array|null $personId The ID of the person to update.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -253,7 +253,7 @@ public static function updatePerson($id, $personId, $params = null, $opts = null
}

/**
* @param array|null $id The ID of the account to which the person belongs.
* @param string|null $id The ID of the account to which the person belongs.
* @param array|null $personId The ID of the person to delete.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -266,7 +266,7 @@ public static function deletePerson($id, $personId, $params = null, $opts = null
}

/**
* @param array|null $id The ID of the account on which to retrieve the persons.
* @param string|null $id The ID of the account on which to retrieve the persons.
* @param array|null $params
* @param array|string|null $opts
*
Expand Down
8 changes: 4 additions & 4 deletions lib/ApplicationFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function refund($params = null, $opts = null)
}

/**
* @param array|null $id The ID of the application fee on which to create the refund.
* @param string|null $id The ID of the application fee on which to create the refund.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -59,7 +59,7 @@ public static function createRefund($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the application fee to which the refund belongs.
* @param string|null $id The ID of the application fee to which the refund belongs.
* @param array|null $refundId The ID of the refund to retrieve.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -72,7 +72,7 @@ public static function retrieveRefund($id, $refundId, $params = null, $opts = nu
}

/**
* @param array|null $id The ID of the application fee to which the refund belongs.
* @param string|null $id The ID of the application fee to which the refund belongs.
* @param array|null $refundId The ID of the refund to update.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -85,7 +85,7 @@ public static function updateRefund($id, $refundId, $params = null, $opts = null
}

/**
* @param array|null $id The ID of the application fee on which to retrieve the refunds.
* @param string|null $id The ID of the application fee on which to retrieve the refunds.
* @param array|null $params
* @param array|string|null $opts
*
Expand Down
8 changes: 4 additions & 4 deletions lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function deleteDiscount()
}

/**
* @param array|null $id The ID of the customer on which to create the source.
* @param string|null $id The ID of the customer on which to create the source.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -153,7 +153,7 @@ public static function createSource($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the customer to which the source belongs.
* @param string|null $id The ID of the customer to which the source belongs.
* @param array|null $sourceId The ID of the source to retrieve.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -166,7 +166,7 @@ public static function retrieveSource($id, $sourceId, $params = null, $opts = nu
}

/**
* @param array|null $id The ID of the customer to which the source belongs.
* @param string|null $id The ID of the customer to which the source belongs.
* @param array|null $sourceId The ID of the source to update.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -179,7 +179,7 @@ public static function updateSource($id, $sourceId, $params = null, $opts = null
}

/**
* @param array|null $id The ID of the customer to which the source belongs.
* @param string|null $id The ID of the customer to which the source belongs.
* @param array|null $sourceId The ID of the source to delete.
* @param array|null $params
* @param array|string|null $opts
Expand Down
8 changes: 4 additions & 4 deletions lib/Transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function cancel()
}

/**
* @param array|null $id The ID of the transfer on which to create the reversal.
* @param string|null $id The ID of the transfer on which to create the reversal.
* @param array|null $params
* @param array|string|null $opts
*
Expand All @@ -73,7 +73,7 @@ public static function createReversal($id, $params = null, $opts = null)
}

/**
* @param array|null $id The ID of the transfer to which the reversal belongs.
* @param string|null $id The ID of the transfer to which the reversal belongs.
* @param array|null $reversalId The ID of the reversal to retrieve.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -86,7 +86,7 @@ public static function retrieveReversal($id, $reversalId, $params = null, $opts
}

/**
* @param array|null $id The ID of the transfer to which the reversal belongs.
* @param string|null $id The ID of the transfer to which the reversal belongs.
* @param array|null $reversalId The ID of the reversal to update.
* @param array|null $params
* @param array|string|null $opts
Expand All @@ -99,7 +99,7 @@ public static function updateReversal($id, $reversalId, $params = null, $opts =
}

/**
* @param array|null $id The ID of the transfer on which to retrieve the reversals.
* @param string|null $id The ID of the transfer on which to retrieve the reversals.
* @param array|null $params
* @param array|string|null $opts
*
Expand Down