@@ -55,8 +55,6 @@ discard block |
||
| 55 | 55 | * @param float $amount |
| 56 | 56 | * @param string $currency |
| 57 | 57 | * @param string $name |
| 58 | - * @param string $description |
|
| 59 | - * @param array $metadata |
|
| 60 | 58 | * |
| 61 | 59 | * @return stdClass |
| 62 | 60 | */ |
@@ -104,7 +102,7 @@ discard block |
||
| 104 | 102 | * @param int $timestamp |
| 105 | 103 | * @param string $method |
| 106 | 104 | * @param string $requestPath |
| 107 | - * @param array $body |
|
| 105 | + * @param string $body |
|
| 108 | 106 | * |
| 109 | 107 | * @return array |
| 110 | 108 | */ |
@@ -81,8 +81,7 @@ discard block |
||
| 81 | 81 | 'body' => $payload, |
| 82 | 82 | 'headers' => $headers |
| 83 | 83 | )); |
| 84 | - } |
|
| 85 | - catch (\Exception $e) |
|
| 84 | + } catch (\Exception $e) |
|
| 86 | 85 | { |
| 87 | 86 | echo $e->getResponse(); |
| 88 | 87 | exit(0); |
@@ -90,8 +89,7 @@ discard block |
||
| 90 | 89 | if ((int) $response->getStatusCode() === 201) |
| 91 | 90 | { |
| 92 | 91 | return json_decode($response->getBody())->data; |
| 93 | - } |
|
| 94 | - else |
|
| 92 | + } else |
|
| 95 | 93 | { |
| 96 | 94 | throw new CoinbaseCheckoutException($response->getBody()); |
| 97 | 95 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | /** |
| 43 | 43 | * Get the services provided by the provider. |
| 44 | 44 | * |
| 45 | - * @return array |
|
| 45 | + * @return string[] |
|
| 46 | 46 | */ |
| 47 | 47 | public function provides() |
| 48 | 48 | { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function register() |
| 31 | 31 | { |
| 32 | - $this->app['coinbase'] = $this->app->share(function ($app) { |
|
| 32 | + $this->app['coinbase'] = $this->app->share(function($app) { |
|
| 33 | 33 | return new CoinbaseClient( |
| 34 | 34 | new Guzzle, |
| 35 | 35 | $app['config']->get('coinbase::apiKey'), |