@@ -103,7 +103,7 @@ |
||
103 | 103 | ]; |
104 | 104 | |
105 | 105 | foreach ($requiredParams as $param) { |
106 | - if (! isset($config[$param])) { |
|
106 | + if (!isset($config[$param])) { |
|
107 | 107 | throw new InvalidArgumentException("Missing OAuth1 client configuration: {$param}."); |
108 | 108 | } |
109 | 109 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | ]; |
24 | 24 | |
25 | 25 | foreach ($requiredParames as $param) { |
26 | - if (! isset($responseParameters[$param])) { |
|
26 | + if (!isset($responseParameters[$param])) { |
|
27 | 27 | throw new CredentialsException("Unable to parse temporary credentials response. Missing parameter: {$param}."); |
28 | 28 | } |
29 | 29 | } |
@@ -143,10 +143,10 @@ |
||
143 | 143 | */ |
144 | 144 | public function normalizeProtocolParameters(array $parameters) |
145 | 145 | { |
146 | - array_walk($parameters, function (&$value, $key) { |
|
147 | - $value = rawurlencode($key) . '="' . rawurlencode($value) . '"'; |
|
146 | + array_walk($parameters, function(&$value, $key) { |
|
147 | + $value = rawurlencode($key).'="'.rawurlencode($value).'"'; |
|
148 | 148 | }); |
149 | 149 | |
150 | - return 'OAuth ' . implode(', ', $parameters); |
|
150 | + return 'OAuth '.implode(', ', $parameters); |
|
151 | 151 | } |
152 | 152 | } |
@@ -2,10 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Risan\OAuth1; |
4 | 4 | |
5 | -use Risan\OAuth1\Credentials\ClientCredentials; |
|
6 | -use Risan\OAuth1\Request\RequestConfigInterface; |
|
7 | -use Risan\OAuth1\Credentials\TemporaryCredentials; |
|
8 | 5 | use Risan\OAuth1\Credentials\CredentialsFactoryInterface; |
6 | +use Risan\OAuth1\Credentials\TemporaryCredentials; |
|
7 | +use Risan\OAuth1\Request\RequestConfigInterface; |
|
9 | 8 | |
10 | 9 | class OAuth1 implements OAuth1Interface |
11 | 10 | { |