@@ -26,7 +26,7 @@ |
||
26 | 26 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
27 | 27 | if (!($obj instanceof \Stripe\SearchResult)) { |
28 | 28 | throw new \Stripe\Exception\UnexpectedValueException( |
29 | - 'Expected type ' . \Stripe\SearchResult::class . ', got "' . \get_class($obj) . '" instead.' |
|
29 | + 'Expected type '.\Stripe\SearchResult::class.', got "'.\get_class($obj).'" instead.' |
|
30 | 30 | ); |
31 | 31 | } |
32 | 32 | $obj->setLastResponse($response); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
27 | 27 | if (!($obj instanceof \Stripe\Collection)) { |
28 | 28 | throw new \Stripe\Exception\UnexpectedValueException( |
29 | - 'Expected type ' . \Stripe\Collection::class . ', got "' . \get_class($obj) . '" instead.' |
|
29 | + 'Expected type '.\Stripe\Collection::class.', got "'.\get_class($obj).'" instead.' |
|
30 | 30 | ); |
31 | 31 | } |
32 | 32 | $obj->setLastResponse($response); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | protected static function _nestedResourceUrl($id, $nestedPath, $nestedId = null) |
39 | 39 | { |
40 | - $url = static::resourceUrl($id) . $nestedPath; |
|
40 | + $url = static::resourceUrl($id).$nestedPath; |
|
41 | 41 | if (null !== $nestedId) { |
42 | 42 | $url .= "/{$nestedId}"; |
43 | 43 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function advance($params = null, $opts = null) |
46 | 46 | { |
47 | - $url = $this->instanceUrl() . '/advance'; |
|
47 | + $url = $this->instanceUrl().'/advance'; |
|
48 | 48 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
49 | 49 | $this->refreshFrom($response, $opts); |
50 | 50 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public static function deleteWhere($params = null, $opts = null) |
53 | 53 | { |
54 | - $url = static::classUrl() . '/delete'; |
|
54 | + $url = static::classUrl().'/delete'; |
|
55 | 55 | list($response, $opts) = static::_staticRequest('post', $url, $params, $opts); |
56 | 56 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
57 | 57 | $obj->setLastResponse($response); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public static function find($params = null, $opts = null) |
71 | 71 | { |
72 | - $url = static::classUrl() . '/find'; |
|
72 | + $url = static::classUrl().'/find'; |
|
73 | 73 | list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); |
74 | 74 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
75 | 75 | $obj->setLastResponse($response); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public static function preview($params = null, $opts = null) |
74 | 74 | { |
75 | - $url = static::classUrl() . '/preview'; |
|
75 | + $url = static::classUrl().'/preview'; |
|
76 | 76 | list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); |
77 | 77 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
78 | 78 | $obj->setLastResponse($response); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public static function previewLines($params = null, $opts = null) |
92 | 92 | { |
93 | - $url = static::classUrl() . '/preview/lines'; |
|
93 | + $url = static::classUrl().'/preview/lines'; |
|
94 | 94 | list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); |
95 | 95 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
96 | 96 | $obj->setLastResponse($response); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function voidCreditNote($params = null, $opts = null) |
110 | 110 | { |
111 | - $url = $this->instanceUrl() . '/void'; |
|
111 | + $url = $this->instanceUrl().'/void'; |
|
112 | 112 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
113 | 113 | $this->refreshFrom($response, $opts); |
114 | 114 |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $account = $this['account']; |
77 | 77 | if (!$id) { |
78 | 78 | throw new Exception\UnexpectedValueException( |
79 | - 'Could not determine which URL to request: ' . |
|
79 | + 'Could not determine which URL to request: '. |
|
80 | 80 | "class instance has invalid ID: {$id}", |
81 | 81 | null |
82 | 82 | ); |
@@ -99,8 +99,8 @@ discard block |
||
99 | 99 | */ |
100 | 100 | public static function retrieve($_id, $_opts = null) |
101 | 101 | { |
102 | - $msg = 'Persons cannot be retrieved without an account ID. Retrieve ' . |
|
103 | - "a person using `Account::retrievePerson('account_id', " . |
|
102 | + $msg = 'Persons cannot be retrieved without an account ID. Retrieve '. |
|
103 | + "a person using `Account::retrievePerson('account_id', ". |
|
104 | 104 | "'person_id')`."; |
105 | 105 | |
106 | 106 | throw new Exception\BadMethodCallException($msg); |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public static function update($_id, $_params = null, $_options = null) |
117 | 117 | { |
118 | - $msg = 'Persons cannot be updated without an account ID. Update ' . |
|
119 | - "a person using `Account::updatePerson('account_id', " . |
|
118 | + $msg = 'Persons cannot be updated without an account ID. Update '. |
|
119 | + "a person using `Account::updatePerson('account_id', ". |
|
120 | 120 | "'person_id', \$updateParams)`."; |
121 | 121 | |
122 | 122 | throw new Exception\BadMethodCallException($msg); |
@@ -110,9 +110,9 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public static function retrieve($_id, $_opts = null) |
112 | 112 | { |
113 | - $msg = 'Cards cannot be retrieved without a customer ID or an ' . |
|
114 | - 'account ID. Retrieve a card using ' . |
|
115 | - "`Customer::retrieveSource('customer_id', 'card_id')` or " . |
|
113 | + $msg = 'Cards cannot be retrieved without a customer ID or an '. |
|
114 | + 'account ID. Retrieve a card using '. |
|
115 | + "`Customer::retrieveSource('customer_id', 'card_id')` or ". |
|
116 | 116 | "`Account::retrieveExternalAccount('account_id', 'card_id')`."; |
117 | 117 | |
118 | 118 | throw new Exception\BadMethodCallException($msg); |
@@ -127,10 +127,10 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public static function update($_id, $_params = null, $_options = null) |
129 | 129 | { |
130 | - $msg = 'Cards cannot be updated without a customer ID or an ' . |
|
131 | - 'account ID. Update a card using ' . |
|
132 | - "`Customer::updateSource('customer_id', 'card_id', " . |
|
133 | - '$updateParams)` or `Account::updateExternalAccount(' . |
|
130 | + $msg = 'Cards cannot be updated without a customer ID or an '. |
|
131 | + 'account ID. Update a card using '. |
|
132 | + "`Customer::updateSource('customer_id', 'card_id', ". |
|
133 | + '$updateParams)` or `Account::updateExternalAccount('. |
|
134 | 134 | "'account_id', 'card_id', \$updateParams)`."; |
135 | 135 | |
136 | 136 | throw new Exception\BadMethodCallException($msg); |
@@ -142,7 +142,7 @@ |
||
142 | 142 | */ |
143 | 143 | public function capture($params = null, $opts = null) |
144 | 144 | { |
145 | - $url = $this->instanceUrl() . '/capture'; |
|
145 | + $url = $this->instanceUrl().'/capture'; |
|
146 | 146 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
147 | 147 | $this->refreshFrom($response, $opts); |
148 | 148 |