Skip to content

Commit

Permalink
Use phpdoc_no_alias_tag rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Feb 6, 2020
1 parent 2907a0a commit 4ff2575
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ return PhpCsFixer\Config::create()
'phpdoc_indent' => true,
'phpdoc_inline_tag' => true,
'phpdoc_no_access' => true,
'phpdoc_no_alias_tag' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_return_self_reference' => true,
Expand Down
6 changes: 3 additions & 3 deletions lib/AlipayAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @package Stripe
*
* @deprecated Alipay accounts are deprecated. Please use the sources API instead.
* @link https://stripe.com/docs/sources/alipay
* @see https://stripe.com/docs/sources/alipay
*/
class AlipayAccount extends ApiResource
{
Expand Down Expand Up @@ -43,7 +43,7 @@ public function instanceUrl()
* @throws \Stripe\Exception\BadMethodCallException
*
* @deprecated Alipay accounts are deprecated. Please use the sources API instead.
* @link https://stripe.com/docs/sources/alipay
* @see https://stripe.com/docs/sources/alipay
*/
public static function retrieve($_id, $_opts = null)
{
Expand All @@ -61,7 +61,7 @@ public static function retrieve($_id, $_opts = null)
* @throws \Stripe\Exception\BadMethodCallException
*
* @deprecated Alipay accounts are deprecated. Please use the sources API instead.
* @link https://stripe.com/docs/sources/alipay
* @see https://stripe.com/docs/sources/alipay
*/
public static function update($_id, $_params = null, $_options = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Capability.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Capability extends ApiResource
/**
* Possible string representations of a capability's status.
*
* @link https://stripe.com/docs/api/capabilities/object#capability_object-status
* @see https://stripe.com/docs/api/capabilities/object#capability_object-status
*/
const STATUS_ACTIVE = 'active';
const STATUS_INACTIVE = 'inactive';
Expand Down
2 changes: 1 addition & 1 deletion lib/CustomerBalanceTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CustomerBalanceTransaction extends ApiResource
/**
* Possible string representations of a balance transaction's type.
*
* @link https://stripe.com/docs/api/customers/customer_balance_transaction_object#customer_balance_transaction_object-type
* @see https://stripe.com/docs/api/customers/customer_balance_transaction_object#customer_balance_transaction_object-type
*/
const TYPE_ADJUSTEMENT = 'adjustment';
const TYPE_APPLIED_TO_INVOICE = 'applied_to_invoice';
Expand Down
2 changes: 1 addition & 1 deletion lib/ErrorObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ErrorObject extends StripeObject
/**
* Possible string representations of an error's code.
*
* @link https://stripe.com/docs/error-codes
* @see https://stripe.com/docs/error-codes
*/
const CODE_ACCOUNT_ALREADY_EXISTS = 'account_already_exists';
const CODE_ACCOUNT_COUNTRY_INVALID_ADDRESS = 'account_country_invalid_address';
Expand Down
4 changes: 2 additions & 2 deletions lib/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ class Person extends ApiResource
/**
* Possible string representations of a person's gender.
*
* @link https://stripe.com/docs/api/persons/object#person_object-gender
* @see https://stripe.com/docs/api/persons/object#person_object-gender
*/
const GENDER_MALE = 'male';
const GENDER_FEMALE = 'female';

/**
* Possible string representations of a person's verification status.
*
* @link https://stripe.com/docs/api/persons/object#person_object-verification-status
* @see https://stripe.com/docs/api/persons/object#person_object-verification-status
*/
const VERIFICATION_STATUS_PENDING = 'pending';
const VERIFICATION_STATUS_UNVERIFIED = 'unverified';
Expand Down
4 changes: 2 additions & 2 deletions lib/TaxId.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TaxId extends ApiResource
/**
* Possible string representations of a tax id's type.
*
* @link https://stripe.com/docs/api/customer_tax_ids/object#tax_id_object-type
* @see https://stripe.com/docs/api/customer_tax_ids/object#tax_id_object-type
*/
const TYPE_AU_ABN = 'au_abn';
const TYPE_CA_BN = 'ca_bn';
Expand All @@ -48,7 +48,7 @@ class TaxId extends ApiResource
/**
* Possible string representations of the verification status.
*
* @link https://stripe.com/docs/api/customer_tax_ids/object#tax_id_object-verification
* @see https://stripe.com/docs/api/customer_tax_ids/object#tax_id_object-verification
*/
const VERIFICATION_STATUS_PENDING = 'pending';
const VERIFICATION_STATUS_UNAVAILABLE = 'unavailable';
Expand Down

0 comments on commit 4ff2575

Please sign in to comment.