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

Use single quotes for OBJECT_NAME constants #792

Merged
merged 1 commit into from
Nov 5, 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
2 changes: 1 addition & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class Account extends ApiResource
{
const OBJECT_NAME = "account";
const OBJECT_NAME = 'account';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/AccountLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class AccountLink extends ApiResource
{
const OBJECT_NAME = "account_link";
const OBJECT_NAME = 'account_link';

use ApiOperations\Create;
}
2 changes: 1 addition & 1 deletion lib/AlipayAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class AlipayAccount extends ApiResource
{
const OBJECT_NAME = "alipay_account";
const OBJECT_NAME = 'alipay_account';

use ApiOperations\Delete;
use ApiOperations\Update;
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplePayDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class ApplePayDomain extends ApiResource
{
const OBJECT_NAME = "apple_pay_domain";
const OBJECT_NAME = 'apple_pay_domain';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplicationFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
class ApplicationFee extends ApiResource
{
const OBJECT_NAME = "application_fee";
const OBJECT_NAME = 'application_fee';

use ApiOperations\All;
use ApiOperations\NestedResource;
Expand Down
2 changes: 1 addition & 1 deletion lib/ApplicationFeeRefund.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class ApplicationFeeRefund extends ApiResource
{
const OBJECT_NAME = "fee_refund";
const OBJECT_NAME = 'fee_refund';

use ApiOperations\Update {
save as protected _save;
Expand Down
2 changes: 1 addition & 1 deletion lib/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class Balance extends SingletonApiResource
{
const OBJECT_NAME = "balance";
const OBJECT_NAME = 'balance';

/**
* @param array|string|null $opts
Expand Down
2 changes: 1 addition & 1 deletion lib/BalanceTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
class BalanceTransaction extends ApiResource
{
const OBJECT_NAME = "balance_transaction";
const OBJECT_NAME = 'balance_transaction';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
class BankAccount extends ApiResource
{
const OBJECT_NAME = "bank_account";
const OBJECT_NAME = 'bank_account';

use ApiOperations\Delete;
use ApiOperations\Update;
Expand Down
2 changes: 1 addition & 1 deletion lib/BitcoinReceiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
class BitcoinReceiver extends ApiResource
{
const OBJECT_NAME = "bitcoin_receiver";
const OBJECT_NAME = 'bitcoin_receiver';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/BitcoinTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
*/
class BitcoinTransaction extends ApiResource
{
const OBJECT_NAME = "bitcoin_transaction";
const OBJECT_NAME = 'bitcoin_transaction';
}
2 changes: 1 addition & 1 deletion lib/Capability.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class Capability extends ApiResource
{
const OBJECT_NAME = "capability";
const OBJECT_NAME = 'capability';

use ApiOperations\Update;

Expand Down
2 changes: 1 addition & 1 deletion lib/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
class Card extends ApiResource
{
const OBJECT_NAME = "card";
const OBJECT_NAME = 'card';

use ApiOperations\Delete;
use ApiOperations\Update;
Expand Down
2 changes: 1 addition & 1 deletion lib/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*/
class Charge extends ApiResource
{
const OBJECT_NAME = "charge";
const OBJECT_NAME = 'charge';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Checkout/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
class Session extends \Stripe\ApiResource
{
const OBJECT_NAME = "checkout.session";
const OBJECT_NAME = 'checkout.session';

use \Stripe\ApiOperations\Create;
use \Stripe\ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class Collection extends StripeObject implements \IteratorAggregate
{
const OBJECT_NAME = "list";
const OBJECT_NAME = 'list';

use ApiOperations\Request;

Expand Down
2 changes: 1 addition & 1 deletion lib/CountrySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class CountrySpec extends ApiResource
{
const OBJECT_NAME = "country_spec";
const OBJECT_NAME = 'country_spec';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
class Coupon extends ApiResource
{
const OBJECT_NAME = "coupon";
const OBJECT_NAME = 'coupon';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
class CreditNote extends ApiResource
{
const OBJECT_NAME = "credit_note";
const OBJECT_NAME = 'credit_note';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class Customer extends ApiResource
{
const OBJECT_NAME = "customer";
const OBJECT_NAME = 'customer';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/CustomerBalanceTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
class CustomerBalanceTransaction extends ApiResource
{
const OBJECT_NAME = "customer_balance_transaction";
const OBJECT_NAME = 'customer_balance_transaction';

/**
* Possible string representations of a balance transaction's type.
Expand Down
2 changes: 1 addition & 1 deletion lib/Discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
*/
class Discount extends StripeObject
{
const OBJECT_NAME = "discount";
const OBJECT_NAME = 'discount';
}
2 changes: 1 addition & 1 deletion lib/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
class Dispute extends ApiResource
{
const OBJECT_NAME = "dispute";
const OBJECT_NAME = 'dispute';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/EphemeralKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
class EphemeralKey extends ApiResource
{
const OBJECT_NAME = "ephemeral_key";
const OBJECT_NAME = 'ephemeral_key';

use ApiOperations\Create {
create as protected _create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class Event extends ApiResource
{
const OBJECT_NAME = "event";
const OBJECT_NAME = 'event';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/ExchangeRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class ExchangeRate extends ApiResource
{
const OBJECT_NAME = "exchange_rate";
const OBJECT_NAME = 'exchange_rate';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class File extends ApiResource
// versions, only `file` is used, but since stripe-php may be used with
// any API version, we need to support deserializing the older
// `file_upload` object into the same class.
const OBJECT_NAME = "file";
const OBJECT_NAME = 'file';
const OBJECT_NAME_ALT = "file_upload";

use ApiOperations\All;
Expand Down
2 changes: 1 addition & 1 deletion lib/FileLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
class FileLink extends ApiResource
{
const OBJECT_NAME = "file_link";
const OBJECT_NAME = 'file_link';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
*/
class Invoice extends ApiResource
{
const OBJECT_NAME = "invoice";
const OBJECT_NAME = 'invoice';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/InvoiceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class InvoiceItem extends ApiResource
{
const OBJECT_NAME = "invoiceitem";
const OBJECT_NAME = 'invoiceitem';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/InvoiceLineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
*/
class InvoiceLineItem extends ApiResource
{
const OBJECT_NAME = "line_item";
const OBJECT_NAME = 'line_item';
}
2 changes: 1 addition & 1 deletion lib/Issuing/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
class Authorization extends \Stripe\ApiResource
{
const OBJECT_NAME = "issuing.authorization";
const OBJECT_NAME = 'issuing.authorization';

use \Stripe\ApiOperations\All;
use \Stripe\ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/Issuing/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
class Card extends \Stripe\ApiResource
{
const OBJECT_NAME = "issuing.card";
const OBJECT_NAME = 'issuing.card';

use \Stripe\ApiOperations\All;
use \Stripe\ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Issuing/CardDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
*/
class CardDetails extends \Stripe\ApiResource
{
const OBJECT_NAME = "issuing.card_details";
const OBJECT_NAME = 'issuing.card_details';
}
2 changes: 1 addition & 1 deletion lib/Issuing/Cardholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
class Cardholder extends \Stripe\ApiResource
{
const OBJECT_NAME = "issuing.cardholder";
const OBJECT_NAME = 'issuing.cardholder';

use \Stripe\ApiOperations\All;
use \Stripe\ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Issuing/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
class Dispute extends \Stripe\ApiResource
{
const OBJECT_NAME = "issuing.dispute";
const OBJECT_NAME = 'issuing.dispute';

use \Stripe\ApiOperations\All;
use \Stripe\ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Issuing/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
class Transaction extends \Stripe\ApiResource
{
const OBJECT_NAME = "issuing.transaction";
const OBJECT_NAME = 'issuing.transaction';

use \Stripe\ApiOperations\All;
use \Stripe\ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/LoginLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
*/
class LoginLink extends ApiResource
{
const OBJECT_NAME = "login_link";
const OBJECT_NAME = 'login_link';
}
2 changes: 1 addition & 1 deletion lib/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*/
class Order extends ApiResource
{
const OBJECT_NAME = "order";
const OBJECT_NAME = 'order';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
*/
class OrderItem extends StripeObject
{
const OBJECT_NAME = "order_item";
const OBJECT_NAME = 'order_item';
}
2 changes: 1 addition & 1 deletion lib/OrderReturn.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
class OrderReturn extends ApiResource
{
const OBJECT_NAME = "order_return";
const OBJECT_NAME = 'order_return';

use ApiOperations\All;
use ApiOperations\Retrieve;
Expand Down
2 changes: 1 addition & 1 deletion lib/PaymentIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
class PaymentIntent extends ApiResource
{
const OBJECT_NAME = "payment_intent";
const OBJECT_NAME = 'payment_intent';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class PaymentMethod extends ApiResource
{
const OBJECT_NAME = "payment_method";
const OBJECT_NAME = 'payment_method';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class Payout extends ApiResource
{
const OBJECT_NAME = "payout";
const OBJECT_NAME = 'payout';

use ApiOperations\All;
use ApiOperations\Create;
Expand Down
2 changes: 1 addition & 1 deletion lib/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
class Person extends ApiResource
{
const OBJECT_NAME = "person";
const OBJECT_NAME = 'person';

use ApiOperations\Delete;
use ApiOperations\Update;
Expand Down
Loading