Completed
Branch develop (aa6d31)
by
unknown
24:05
created
htdocs/includes/OAuth/OAuth1/Signature/Signature.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         ksort($signatureData);
66 66
 
67 67
         // determine base uri
68
-        $baseUri = $uri->getScheme() . '://' . $uri->getRawAuthority();
68
+        $baseUri = $uri->getScheme().'://'.$uri->getRawAuthority();
69 69
 
70 70
         if ('/' === $uri->getPath()) {
71 71
             $baseUri .= $uri->hasExplicitTrailingHostSlash() ? '/' : '';
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
             $baseUri .= $uri->getPath();
74 74
         }
75 75
 
76
-        $baseString = strtoupper($method) . '&';
77
-        $baseString .= rawurlencode($baseUri) . '&';
76
+        $baseString = strtoupper($method).'&';
77
+        $baseString .= rawurlencode($baseUri).'&';
78 78
         $baseString .= rawurlencode($this->buildSignatureDataString($signatureData));
79 79
 
80 80
         return base64_encode($this->hash($baseString));
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $signatureString = '';
91 91
         $delimiter = '';
92 92
         foreach ($signatureData as $key => $value) {
93
-            $signatureString .= $delimiter . $key . '=' . $value;
93
+            $signatureString .= $delimiter.$key.'='.$value;
94 94
 
95 95
             $delimiter = '&';
96 96
         }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     protected function getSigningKey()
105 105
     {
106
-        $signingKey = rawurlencode($this->credentials->getConsumerSecret()) . '&';
106
+        $signingKey = rawurlencode($this->credentials->getConsumerSecret()).'&';
107 107
         if ($this->tokenSecret !== null) {
108 108
             $signingKey .= rawurlencode($this->tokenSecret);
109 109
         }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 return hash_hmac('sha1', $data, $this->getSigningKey(), true);
126 126
             default:
127 127
                 throw new UnsupportedHashAlgorithmException(
128
-                    'Unsupported hashing algorithm (' . $this->algorithm . ') used.'
128
+                    'Unsupported hashing algorithm ('.$this->algorithm.') used.'
129 129
                 );
130 130
         }
131 131
     }
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/Redmine.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function getRequestTokenEndpoint()
34 34
     {
35
-        return new Uri($this->baseApiUri->getAbsoluteUri() . '/request_token');
35
+        return new Uri($this->baseApiUri->getAbsoluteUri().'/request_token');
36 36
     }
37 37
 
38 38
     /**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function getAuthorizationEndpoint()
42 42
     {
43
-        return new Uri($this->baseApiUri->getAbsoluteUri() . '/authorize');
43
+        return new Uri($this->baseApiUri->getAbsoluteUri().'/authorize');
44 44
     }
45 45
 
46 46
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function getAccessTokenEndpoint()
50 50
     {
51
-        return new Uri($this->baseApiUri->getAbsoluteUri() . '/access_token');
51
+        return new Uri($this->baseApiUri->getAbsoluteUri().'/access_token');
52 52
     }
53 53
 
54 54
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         if (null === $data || !is_array($data)) {
78 78
             throw new TokenResponseException('Unable to parse response.');
79 79
         } elseif (isset($data['error'])) {
80
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
80
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
81 81
         }
82 82
 
83 83
         $token = new StdOAuth1Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/QuickBooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         if (null === $data || !is_array($data)) {
88 88
             throw new TokenResponseException('Unable to parse response.');
89 89
         } elseif (isset($data['error'])) {
90
-            $message = 'Error in retrieving token: "' . $data['error'] . '"';
90
+            $message = 'Error in retrieving token: "'.$data['error'].'"';
91 91
             throw new TokenResponseException($message);
92 92
         }
93 93
 
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/AbstractService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $authorizationHeader = 'OAuth ';
182 182
         $delimiter = '';
183 183
         foreach ($parameters as $key => $value) {
184
-            $authorizationHeader .= $delimiter . rawurlencode($key) . '="' . rawurlencode($value) . '"';
184
+            $authorizationHeader .= $delimiter.rawurlencode($key).'="'.rawurlencode($value).'"';
185 185
 
186 186
             $delimiter = ', ';
187 187
         }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $delimiter = '';
226 226
 
227 227
         foreach ($authParameters as $key => $value) {
228
-            $authorizationHeader .= $delimiter . rawurlencode($key) . '="' . rawurlencode($value) . '"';
228
+            $authorizationHeader .= $delimiter.rawurlencode($key).'="'.rawurlencode($value).'"';
229 229
             $delimiter = ', ';
230 230
         }
231 231
 
@@ -264,9 +264,9 @@  discard block
 block discarded – undo
264 264
         $characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
265 265
 
266 266
         $nonce = '';
267
-        $maxRand = strlen($characters)-1;
267
+        $maxRand = strlen($characters) - 1;
268 268
         for ($i = 0; $i < $length; $i++) {
269
-            $nonce.= $characters[rand(0, $maxRand)];
269
+            $nonce .= $characters[rand(0, $maxRand)];
270 270
         }
271 271
 
272 272
         return $nonce;
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/ScoopIt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         if (null === $data || !is_array($data)) {
78 78
             throw new TokenResponseException('Unable to parse response.');
79 79
         } elseif (isset($data['error'])) {
80
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
80
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
81 81
         }
82 82
 
83 83
         $token = new StdOAuth1Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/FiveHundredPx.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             throw new TokenResponseException('Unable to parse response.');
101 101
         } elseif (isset($data['error'])) {
102 102
             throw new TokenResponseException(
103
-                'Error in retrieving token: "' . $data['error'] . '"'
103
+                'Error in retrieving token: "'.$data['error'].'"'
104 104
             );
105 105
         }
106 106
 
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/Flickr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         if ($data === null || !is_array($data)) {
61 61
             throw new TokenResponseException('Unable to parse response.');
62 62
         } elseif (isset($data['error'])) {
63
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
63
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
64 64
         }
65 65
 
66 66
         $token = new StdOAuth1Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/Twitter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     const ENDPOINT_AUTHENTICATE = "https://api.twitter.com/oauth/authenticate";
18 18
     const ENDPOINT_AUTHORIZE    = "https://api.twitter.com/oauth/authorize";
19 19
 
20
-    protected $authorizationEndpoint   = self::ENDPOINT_AUTHENTICATE;
20
+    protected $authorizationEndpoint = self::ENDPOINT_AUTHENTICATE;
21 21
 
22 22
     public function __construct(
23 23
         CredentialsInterface $credentials,
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
         parse_str($responseBody, $data);
101 101
 
102 102
         if (null === $data || !is_array($data)) {
103
-            throw new TokenResponseException('Unable to parse response: ' . $responseBody);
103
+            throw new TokenResponseException('Unable to parse response: '.$responseBody);
104 104
         } elseif (isset($data['error'])) {
105
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
105
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
106 106
         } elseif (!isset($data["oauth_token"]) || !isset($data["oauth_token_secret"])) {
107
-            throw new TokenResponseException('Invalid response. OAuth Token data not set: ' . $responseBody);
107
+            throw new TokenResponseException('Invalid response. OAuth Token data not set: '.$responseBody);
108 108
         }
109 109
 
110 110
         $token = new StdOAuth1Token();
Please login to merge, or discard this patch.
htdocs/includes/OAuth/OAuth1/Service/Etsy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getRequestTokenEndpoint()
37 37
     {
38
-        $uri = new Uri($this->baseApiUri . 'oauth/request_token');
38
+        $uri = new Uri($this->baseApiUri.'oauth/request_token');
39 39
         $scopes = $this->getScopes();
40 40
 
41 41
         if (count($scopes)) {
42
-            $uri->setQuery('scope=' . implode('%20', $scopes));
42
+            $uri->setQuery('scope='.implode('%20', $scopes));
43 43
         }
44 44
 
45 45
         return $uri;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function getAccessTokenEndpoint()
60 60
     {
61
-        return new Uri($this->baseApiUri . 'oauth/access_token');
61
+        return new Uri($this->baseApiUri.'oauth/access_token');
62 62
     }
63 63
 
64 64
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         if (null === $data || !is_array($data)) {
88 88
             throw new TokenResponseException('Unable to parse response.');
89 89
         } elseif (isset($data['error'])) {
90
-            throw new TokenResponseException('Error in retrieving token: "' . $data['error'] . '"');
90
+            throw new TokenResponseException('Error in retrieving token: "'.$data['error'].'"');
91 91
         }
92 92
 
93 93
         $token = new StdOAuth1Token();
Please login to merge, or discard this patch.