@@ -82,7 +82,7 @@ |
||
82 | 82 | */ |
83 | 83 | public static function allLineItems($id, $params = null, $opts = null) |
84 | 84 | { |
85 | - $url = static::resourceUrl($id) . '/line_items'; |
|
85 | + $url = static::resourceUrl($id).'/line_items'; |
|
86 | 86 | list($response, $opts) = static::_staticRequest('get', $url, $params, $opts); |
87 | 87 | $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts); |
88 | 88 | $obj->setLastResponse($response); |
@@ -304,9 +304,9 @@ |
||
304 | 304 | $extraConfigKeys = \array_diff(\array_keys($config), \array_keys($this->getDefaultConfig())); |
305 | 305 | if (!empty($extraConfigKeys)) { |
306 | 306 | // Wrap in single quote to more easily catch trailing spaces errors |
307 | - $invalidKeys = "'" . \implode("', '", $extraConfigKeys) . "'"; |
|
307 | + $invalidKeys = "'".\implode("', '", $extraConfigKeys)."'"; |
|
308 | 308 | |
309 | - throw new \Stripe\Exception\InvalidArgumentException('Found unknown key(s) in configuration array: ' . $invalidKeys); |
|
309 | + throw new \Stripe\Exception\InvalidArgumentException('Found unknown key(s) in configuration array: '.$invalidKeys); |
|
310 | 310 | } |
311 | 311 | } |
312 | 312 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function attach($params = null, $opts = null) |
77 | 77 | { |
78 | - $url = $this->instanceUrl() . '/attach'; |
|
78 | + $url = $this->instanceUrl().'/attach'; |
|
79 | 79 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
80 | 80 | $this->refreshFrom($response, $opts); |
81 | 81 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function detach($params = null, $opts = null) |
94 | 94 | { |
95 | - $url = $this->instanceUrl() . '/detach'; |
|
95 | + $url = $this->instanceUrl().'/detach'; |
|
96 | 96 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
97 | 97 | $this->refreshFrom($response, $opts); |
98 | 98 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $transfer = $this['transfer']; |
51 | 51 | if (!$id) { |
52 | 52 | throw new Exception\UnexpectedValueException( |
53 | - 'Could not determine which URL to request: ' . |
|
53 | + 'Could not determine which URL to request: '. |
|
54 | 54 | "class instance has invalid ID: {$id}", |
55 | 55 | null |
56 | 56 | ); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function cancel($params = null, $opts = null) |
86 | 86 | { |
87 | - $url = $this->instanceUrl() . '/cancel'; |
|
87 | + $url = $this->instanceUrl().'/cancel'; |
|
88 | 88 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
89 | 89 | $this->refreshFrom($response, $opts); |
90 | 90 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public function reverse($params = null, $opts = null) |
103 | 103 | { |
104 | - $url = $this->instanceUrl() . '/reverse'; |
|
104 | + $url = $this->instanceUrl().'/reverse'; |
|
105 | 105 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
106 | 106 | $this->refreshFrom($response, $opts); |
107 | 107 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function cancelAction($params = null, $opts = null) |
46 | 46 | { |
47 | - $url = $this->instanceUrl() . '/cancel_action'; |
|
47 | + $url = $this->instanceUrl().'/cancel_action'; |
|
48 | 48 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
49 | 49 | $this->refreshFrom($response, $opts); |
50 | 50 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function processPaymentIntent($params = null, $opts = null) |
63 | 63 | { |
64 | - $url = $this->instanceUrl() . '/process_payment_intent'; |
|
64 | + $url = $this->instanceUrl().'/process_payment_intent'; |
|
65 | 65 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
66 | 66 | $this->refreshFrom($response, $opts); |
67 | 67 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function processSetupIntent($params = null, $opts = null) |
80 | 80 | { |
81 | - $url = $this->instanceUrl() . '/process_setup_intent'; |
|
81 | + $url = $this->instanceUrl().'/process_setup_intent'; |
|
82 | 82 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
83 | 83 | $this->refreshFrom($response, $opts); |
84 | 84 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function refundPayment($params = null, $opts = null) |
97 | 97 | { |
98 | - $url = $this->instanceUrl() . '/refund_payment'; |
|
98 | + $url = $this->instanceUrl().'/refund_payment'; |
|
99 | 99 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
100 | 100 | $this->refreshFrom($response, $opts); |
101 | 101 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function setReaderDisplay($params = null, $opts = null) |
114 | 114 | { |
115 | - $url = $this->instanceUrl() . '/set_reader_display'; |
|
115 | + $url = $this->instanceUrl().'/set_reader_display'; |
|
116 | 116 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
117 | 117 | $this->refreshFrom($response, $opts); |
118 | 118 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $account = $this['account']; |
41 | 41 | if (!$id) { |
42 | 42 | throw new Exception\UnexpectedValueException( |
43 | - 'Could not determine which URL to request: ' . |
|
43 | + 'Could not determine which URL to request: '. |
|
44 | 44 | "class instance has invalid ID: {$id}", |
45 | 45 | null |
46 | 46 | ); |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public static function retrieve($_id, $_opts = null) |
65 | 65 | { |
66 | - $msg = 'Capabilities cannot be retrieved without an account ID. ' . |
|
67 | - 'Retrieve a capability using `Account::retrieveCapability(' . |
|
66 | + $msg = 'Capabilities cannot be retrieved without an account ID. '. |
|
67 | + 'Retrieve a capability using `Account::retrieveCapability('. |
|
68 | 68 | "'account_id', 'capability_id')`."; |
69 | 69 | |
70 | 70 | throw new Exception\BadMethodCallException($msg); |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public static function update($_id, $_params = null, $_options = null) |
81 | 81 | { |
82 | - $msg = 'Capabilities cannot be updated without an account ID. ' . |
|
83 | - 'Update a capability using `Account::updateCapability(' . |
|
82 | + $msg = 'Capabilities cannot be updated without an account ID. '. |
|
83 | + 'Update a capability using `Account::updateCapability('. |
|
84 | 84 | "'account_id', 'capability_id', \$updateParams)`."; |
85 | 85 | |
86 | 86 | throw new Exception\BadMethodCallException($msg); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | if (null === $params) { |
62 | 62 | return null; |
63 | 63 | } |
64 | - \array_walk_recursive($params, function (&$value, $key) { |
|
64 | + \array_walk_recursive($params, function(&$value, $key) { |
|
65 | 65 | if (null === $value) { |
66 | 66 | $value = ''; |
67 | 67 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | $query = \Stripe\Util\Util::encodeParameters($params); |
45 | 45 | |
46 | - return $base . '/oauth/authorize?' . $query; |
|
46 | + return $base.'/oauth/authorize?'.$query; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -144,7 +144,6 @@ discard block |
||
144 | 144 | private function _getBase($opts) |
145 | 145 | { |
146 | 146 | return isset($opts->apiBase) ? |
147 | - $opts->apiBase : |
|
148 | - $this->client->getConnectBase(); |
|
147 | + $opts->apiBase : $this->client->getConnectBase(); |
|
149 | 148 | } |
150 | 149 | } |