@@ -167,6 +167,7 @@ discard block |
||
167 | 167 | * Tells the handler to make the API call to Authorize.Net |
168 | 168 | * |
169 | 169 | * @throws \JohnConde\Authnet\AuthnetCurlException |
170 | + * @return string |
|
170 | 171 | */ |
171 | 172 | private function process() |
172 | 173 | { |
@@ -187,7 +188,7 @@ discard block |
||
187 | 188 | /** |
188 | 189 | * Sets the handler to be used to handle our API call. Mainly used for unit testing as Curl is used by default. |
189 | 190 | * |
190 | - * @param object $processor |
|
191 | + * @param \Curl\Curl $processor |
|
191 | 192 | */ |
192 | 193 | public function setProcessHandler($processor) |
193 | 194 | { |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * @throws \JohnConde\Authnet\AuthnetCurlException |
143 | 143 | * @throws \JohnConde\Authnet\AuthnetInvalidJsonException |
144 | 144 | */ |
145 | - public function __call($api_call, Array $args) |
|
145 | + public function __call($api_call, array $args) |
|
146 | 146 | { |
147 | 147 | $authentication = [ |
148 | 148 | 'merchantAuthentication' => [ |
@@ -298,7 +298,7 @@ |
||
298 | 298 | /** |
299 | 299 | * Sets the handler to be used to handle our API call. Mainly used for unit testing as Curl is used by default. |
300 | 300 | * |
301 | - * @param object $processor |
|
301 | + * @param \Curl\Curl $processor |
|
302 | 302 | */ |
303 | 303 | public function setProcessHandler($processor) |
304 | 304 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @throws \JohnConde\Authnet\AuthnetInvalidJsonException |
103 | 103 | * @throws \JohnConde\Authnet\AuthnetCurlException |
104 | 104 | */ |
105 | - public function createWebhooks(Array $webhooks, $webhookUrl, $status = 'active') |
|
105 | + public function createWebhooks(array $webhooks, $webhookUrl, $status = 'active') |
|
106 | 106 | { |
107 | 107 | $this->endpoint = 'webhooks'; |
108 | 108 | $this->url = sprintf('%s%s', $this->url, $this->endpoint); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * @throws \JohnConde\Authnet\AuthnetInvalidJsonException |
173 | 173 | * @throws \JohnConde\Authnet\AuthnetCurlException |
174 | 174 | */ |
175 | - public function updateWebhook($webhookId, $webhookUrl, Array $eventTypes, $status = 'active') |
|
175 | + public function updateWebhook($webhookId, $webhookUrl, array $eventTypes, $status = 'active') |
|
176 | 176 | { |
177 | 177 | $this->endpoint = 'webhooks'; |
178 | 178 | $this->url = sprintf('%s%s/%s', $this->url, $this->endpoint, $webhookId); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * |
247 | 247 | * @codeCoverageIgnore |
248 | 248 | */ |
249 | - private function get($url, Array $params = []) { |
|
249 | + private function get($url, array $params = []) { |
|
250 | 250 | $this->processor->get($url, $params); |
251 | 251 | return $this->handleResponse(); |
252 | 252 | } |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetTransactionResponseCallException Extends AuthnetException {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetTransactionResponseCallException extends AuthnetException {} |
|
25 | 25 | \ No newline at end of file |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetException Extends \Exception {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetException extends \Exception {} |
|
25 | 25 | \ No newline at end of file |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetCannotSetParamsException Extends AuthnetException {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetCannotSetParamsException extends AuthnetException {} |
|
25 | 25 | \ No newline at end of file |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetInvalidAmountException Extends AuthnetException {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetInvalidAmountException extends AuthnetException {} |
|
25 | 25 | \ No newline at end of file |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetInvalidCredentialsException Extends AuthnetException {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetInvalidCredentialsException extends AuthnetException {} |
|
25 | 25 | \ No newline at end of file |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetInvalidJsonException Extends AuthnetException {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetInvalidJsonException extends AuthnetException {} |
|
25 | 25 | \ No newline at end of file |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0 |
21 | 21 | * @link https://github.com/stymiee/authnetjson |
22 | 22 | */ |
23 | -class AuthnetInvalidParameterException Extends AuthnetException {} |
|
24 | 23 | \ No newline at end of file |
24 | +class AuthnetInvalidParameterException extends AuthnetException {} |
|
25 | 25 | \ No newline at end of file |