Completed
Push — develop ( 7cd627...0050db )
by Risan Bagja
01:37
created
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Credentials/CredentialsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Request/RequestConfig.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,10 +143,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,11 +5,9 @@
 block discarded – undo
5 5
 use DateTime;
6 6
 use GuzzleHttp\Psr7\Uri;
7 7
 use Risan\OAuth1\ConfigInterface;
8
-use Risan\OAuth1\Signature\HmacSha1Signer;
9
-use Risan\OAuth1\Signature\SignerInterface;
10
-use Risan\OAuth1\Credentials\TemporaryCredentials;
11
-use Risan\OAuth1\Signature\KeyBasedSignerInterface;
12 8
 use Risan\OAuth1\Credentials\ServerIssuedCredentials;
9
+use Risan\OAuth1\Credentials\TemporaryCredentials;
10
+use Risan\OAuth1\Signature\SignerInterface;
13 11
 
14 12
 class RequestConfig implements RequestConfigInterface
15 13
 {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,16 +119,16 @@
 block discarded – undo
119 119
     }
120 120
 
121 121
      /**
122
-     * {@inheritDoc}
123
-     */
122
+      * {@inheritDoc}
123
+      */
124 124
     public function getTokenCredentialsUrl()
125 125
     {
126 126
         return $this->config->getTokenCredentialsUrl();
127 127
     }
128 128
 
129 129
      /**
130
-     * {@inheritDoc}
131
-     */
130
+      * {@inheritDoc}
131
+      */
132 132
     public function getTokenCredentialsAuthorizationHeader(TemporaryCredentials $temporaryCredentials, $verificationCode)
133 133
     {
134 134
         $parameters = $this->getBaseProtocolParameters();
Please login to merge, or discard this patch.