Completed
Push — 2.0-dev ( 5ac841...8e2c1f )
by Michael
05:16
created
src/Client.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -217,12 +217,12 @@  discard block
 block discarded – undo
217 217
 	 */
218 218
 	private function authorise()
219 219
 	{
220
-		$url = $this->getOption('authoriseURL') . '?oauth_token=' . $this->token['key'];
220
+		$url = $this->getOption('authoriseURL').'?oauth_token='.$this->token['key'];
221 221
 
222 222
 		if ($this->getOption('scope'))
223 223
 		{
224 224
 			$scope = \is_array($this->getOption('scope')) ? implode(' ', $this->getOption('scope')) : $this->getOption('scope');
225
-			$url .= '&scope=' . urlencode($scope);
225
+			$url .= '&scope='.urlencode($scope);
226 226
 		}
227 227
 
228 228
 		if ($this->getOption('sendheaders'))
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
 		{
371 371
 			if (!strcmp($header, 'OAuth '))
372 372
 			{
373
-				$header .= $key . '="' . $this->safeEncode($value) . '"';
373
+				$header .= $key.'="'.$this->safeEncode($value).'"';
374 374
 			}
375 375
 			else
376 376
 			{
377
-				$header .= ', ' . $key . '="' . $value . '"';
377
+				$header .= ', '.$key.'="'.$value.'"';
378 378
 			}
379 379
 		}
380 380
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 	public static function generateNonce()
514 514
 	{
515 515
 		// The md5s look nicer than numbers.
516
-		return md5(microtime() . random_bytes(16));
516
+		return md5(microtime().random_bytes(16));
517 517
 	}
518 518
 
519 519
 	/**
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
 	 */
526 526
 	private function prepareSigningKey(): string
527 527
 	{
528
-		return $this->safeEncode($this->getOption('consumer_secret')) . '&' . $this->safeEncode(($this->token) ? $this->token['secret'] : '');
528
+		return $this->safeEncode($this->getOption('consumer_secret')).'&'.$this->safeEncode(($this->token) ? $this->token['secret'] : '');
529 529
 	}
530 530
 
531 531
 	/**
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -129,8 +129,7 @@  discard block
 block discarded – undo
129 129
 		if (strcmp($this->version, '1.0a') === 0)
130 130
 		{
131 131
 			$verifier = $this->input->get('oauth_verifier');
132
-		}
133
-		else
132
+		} else
134 133
 		{
135 134
 			$verifier = $this->input->get('oauth_token');
136 135
 		}
@@ -290,8 +289,7 @@  discard block
 block discarded – undo
290 289
 		if (isset($headers['Content-Type']) && strpos($headers['Content-Type'], 'multipart/form-data') !== false || !\is_array($data))
291 290
 		{
292 291
 			$oauthHeaders = $parameters;
293
-		}
294
-		else
292
+		} else
295 293
 		{
296 294
 			// Use all parameters for the signature.
297 295
 			$oauthHeaders = array_merge($parameters, $data);
@@ -371,8 +369,7 @@  discard block
 block discarded – undo
371 369
 			if (!strcmp($header, 'OAuth '))
372 370
 			{
373 371
 				$header .= $key . '="' . $this->safeEncode($value) . '"';
374
-			}
375
-			else
372
+			} else
376 373
 			{
377 374
 				$header .= ', ' . $key . '="' . $value . '"';
378 375
 			}
@@ -452,8 +449,7 @@  discard block
 block discarded – undo
452 449
 					$v    = $this->safeEncode($v);
453 450
 					$kv[] = "{$key}={$v}";
454 451
 				}
455
-			}
456
-			else
452
+			} else
457 453
 			{
458 454
 				$value = $this->safeEncode($value);
459 455
 				$kv[]  = "{$key}={$value}";
Please login to merge, or discard this patch.