From f463eb9db15043221654944644880792463b1a4a Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 22 Mar 2013 11:44:53 +0000 Subject: [PATCH] Style fixes --- src/OAuth2/AuthServer.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/OAuth2/AuthServer.php b/src/OAuth2/AuthServer.php index 483d137c..54fb7811 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/OAuth2/AuthServer.php @@ -446,13 +446,15 @@ class AuthServer public function getParam($param = '', $method = 'get', $inputParams = array(), $default = null) { if (is_string($param)) { - if(isset($inputParams[$param])) { + if (isset($inputParams[$param])) { return $inputParams[$param]; - } elseif($param == 'client_id' && !is_null($client_id = $this->getRequest()->server('PHP_AUTH_USER'))) { + } elseif ($param === 'client_id' && ! is_null($client_id = $this->getRequest()->server('PHP_AUTH_USER'))) { return $client_id; - } elseif($param == 'client_secret' && !is_null($client_secret = $this->getRequest()->server('PHP_AUTH_PW'))) { + } elseif ($param === 'client_secret' && ! is_null($client_secret = $this->getRequest()->server('PHP_AUTH_PW'))) { return $client_secret; - } else return $this->getRequest()->{$method}($param, $default); + } else { + return $this->getRequest()->{$method}($param, $default); + } } else { $response = array(); foreach ($param as $p) {