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

Formatting fixes #691

Merged
merged 1 commit into from
Aug 9, 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
3 changes: 0 additions & 3 deletions examples/oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@

echo "<p>Success! Account <code>$accountId</code> is connected.</p>\n";
echo "<p>Click <a href=\"?deauth=$accountId\">here</a> to disconnect the account.</p>\n";

} elseif (isset($_GET['error'])) {
// The user was redirect back from the OAuth form with an error.
$error = $_GET['error'];
$error_description = $_GET['error_description'];

echo "<p>Error: code=" . htmlspecialchars($error, ENT_QUOTES) . ", description=" . htmlspecialchars($error_description, ENT_QUOTES) . "</p>\n";
echo "<p>Click <a href=\"?\">here</a> to restart the OAuth flow.</p>\n";

} elseif (isset($_GET['deauth'])) {
// Deauthorization request
$accountId = $_GET['deauth'];
Expand All @@ -46,7 +44,6 @@

echo "<p>Success! Account <code>" . htmlspecialchars($accountId, ENT_QUOTES) . "</code> is disconnected.</p>\n";
echo "<p>Click <a href=\"?\">here</a> to restart the OAuth flow.</p>\n";

} else {
$url = \Stripe\OAuth::authorizeUrl([
'scope' => 'read_only',
Expand Down
1 change: 0 additions & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
*/
class Account extends ApiResource
{

const OBJECT_NAME = "account";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/AccountLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class AccountLink extends ApiResource
{

const OBJECT_NAME = "account_link";

use ApiOperations\Create;
Expand Down
1 change: 0 additions & 1 deletion lib/AlipayAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
class AlipayAccount extends ApiResource
{

const OBJECT_NAME = "alipay_account";

use ApiOperations\Delete;
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiRequestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private static function _specificAPIError($rbody, $rcode, $rheaders, $resp, $err
return new Error\Idempotency($msg, $rcode, $rbody, $resp, $rheaders);
}

// intentional fall-through
// no break
case 404:
return new Error\InvalidRequest($msg, $param, $rcode, $rbody, $resp, $rheaders);
case 401:
Expand Down
1 change: 0 additions & 1 deletion lib/ApplePayDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class ApplePayDomain extends ApiResource
{

const OBJECT_NAME = "apple_pay_domain";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/ApplicationFee.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
class ApplicationFee extends ApiResource
{

const OBJECT_NAME = "application_fee";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/ApplicationFeeRefund.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
class ApplicationFeeRefund extends ApiResource
{

const OBJECT_NAME = "fee_refund";

use ApiOperations\Update {
Expand Down
1 change: 0 additions & 1 deletion lib/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class Balance extends SingletonApiResource
{

const OBJECT_NAME = "balance";

/**
Expand Down
1 change: 0 additions & 1 deletion lib/BalanceTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
class BalanceTransaction extends ApiResource
{

const OBJECT_NAME = "balance_transaction";

use ApiOperations\All;
Expand Down
13 changes: 6 additions & 7 deletions lib/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class BankAccount extends ApiResource
{

const OBJECT_NAME = "bank_account";

use ApiOperations\Delete;
Expand Down Expand Up @@ -93,12 +92,12 @@ public static function update($_id, $_params = null, $_options = null)
throw new Error\InvalidRequest($msg, null);
}

/**
* @param array|null $params
* @param array|string|null $options
*
* @return BankAccount The verified bank account.
*/
/**
* @param array|null $params
* @param array|string|null $options
*
* @return BankAccount The verified bank account.
*/
public function verify($params = null, $options = null)
{
$url = $this->instanceUrl() . '/verify';
Expand Down
1 change: 0 additions & 1 deletion lib/BitcoinReceiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
class BitcoinReceiver extends ApiResource
{

const OBJECT_NAME = "bitcoin_receiver";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/BitcoinTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
*/
class BitcoinTransaction extends ApiResource
{

const OBJECT_NAME = "bitcoin_transaction";
}
1 change: 0 additions & 1 deletion lib/Capability.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class Capability extends ApiResource
{

const OBJECT_NAME = "capability";

use ApiOperations\Update;
Expand Down
1 change: 0 additions & 1 deletion lib/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
*/
class Card extends ApiResource
{

const OBJECT_NAME = "card";

use ApiOperations\Delete;
Expand Down
1 change: 0 additions & 1 deletion lib/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
*/
class Charge extends ApiResource
{

const OBJECT_NAME = "charge";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Checkout/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
class Session extends \Stripe\ApiResource
{

const OBJECT_NAME = "checkout.session";

use \Stripe\ApiOperations\Create;
Expand Down
1 change: 0 additions & 1 deletion lib/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
class Collection extends StripeObject implements \IteratorAggregate
{

const OBJECT_NAME = "list";

use ApiOperations\Request;
Expand Down
1 change: 0 additions & 1 deletion lib/CountrySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
class CountrySpec extends ApiResource
{

const OBJECT_NAME = "country_spec";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Coupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class Coupon extends ApiResource
{

const OBJECT_NAME = "coupon";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
*/
class CreditNote extends ApiResource
{

const OBJECT_NAME = "credit_note";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
*/
class Customer extends ApiResource
{

const OBJECT_NAME = "customer";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
*/
class Discount extends StripeObject
{

const OBJECT_NAME = "discount";
}
1 change: 0 additions & 1 deletion lib/Dispute.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
class Dispute extends ApiResource
{

const OBJECT_NAME = "dispute";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/EphemeralKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class EphemeralKey extends ApiResource
{

const OBJECT_NAME = "ephemeral_key";

use ApiOperations\Create {
Expand Down
1 change: 0 additions & 1 deletion lib/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/
class Event extends ApiResource
{

const OBJECT_NAME = "event";

/**
Expand Down
1 change: 0 additions & 1 deletion lib/ExchangeRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class ExchangeRate extends ApiResource
{

const OBJECT_NAME = "exchange_rate";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/FileLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
class FileLink extends ApiResource
{

const OBJECT_NAME = "file_link";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
*/
class Invoice extends ApiResource
{

const OBJECT_NAME = "invoice";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/InvoiceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
class InvoiceItem extends ApiResource
{

const OBJECT_NAME = "invoiceitem";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/IssuerFraudRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class IssuerFraudRecord extends ApiResource
{

const OBJECT_NAME = "issuer_fraud_record";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/LoginLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
*/
class LoginLink extends ApiResource
{

const OBJECT_NAME = "login_link";
}
1 change: 0 additions & 1 deletion lib/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
*/
class Order extends ApiResource
{

const OBJECT_NAME = "order";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
*/
class OrderItem extends StripeObject
{

const OBJECT_NAME = "order_item";
}
1 change: 0 additions & 1 deletion lib/OrderReturn.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
class OrderReturn extends ApiResource
{

const OBJECT_NAME = "order_return";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/PaymentIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
*/
class PaymentIntent extends ApiResource
{

const OBJECT_NAME = "payment_intent";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
class PaymentMethod extends ApiResource
{

const OBJECT_NAME = "payment_method";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Payout.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
*/
class Payout extends ApiResource
{

const OBJECT_NAME = "payout";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
*/
class Person extends ApiResource
{

const OBJECT_NAME = "person";

use ApiOperations\Delete;
Expand Down
1 change: 0 additions & 1 deletion lib/Plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
class Plan extends ApiResource
{

const OBJECT_NAME = "plan";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
class Product extends ApiResource
{

const OBJECT_NAME = "product";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/Recipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
class Recipient extends ApiResource
{

const OBJECT_NAME = "recipient";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/RecipientTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@
*/
class RecipientTransfer extends ApiResource
{

const OBJECT_NAME = "recipient_transfer";
}
1 change: 0 additions & 1 deletion lib/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
*/
class Refund extends ApiResource
{

const OBJECT_NAME = "refund";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/SKU.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
class SKU extends ApiResource
{

const OBJECT_NAME = "sku";

use ApiOperations\All;
Expand Down
1 change: 0 additions & 1 deletion lib/SetupIntent.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
*/
class SetupIntent extends ApiResource
{

const OBJECT_NAME = "setup_intent";

use ApiOperations\All;
Expand Down
Loading