Skip to content

Commit

Permalink
Add missing import.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Apr 1, 2019
1 parent 0192c0d commit 6e854f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Katsana\Socialite;

use Illuminate\Container\Container;
use Katsana\Sdk\Client;
use Laravel\Socialite\Two\ProviderInterface;
use SocialiteProviders\Manager\OAuth2\AbstractProvider;
use SocialiteProviders\Manager\OAuth2\User;
Expand Down Expand Up @@ -61,7 +62,7 @@ public static function setEnvironment(?string $environment = null)
*/
protected function getEnvironment(): string
{
if (is_null($environment = static::$environment)) {
if (\is_null($environment = static::$environment)) {
$environment = $this->getConfig('environment', 'production');
}

Expand All @@ -79,7 +80,7 @@ protected function getEnvironmentEndpoint(?string $group = null): ?string
{
$environment = $this->getEnvironment();

if (is_null($group) || empty($group)) {
if (\is_null($group) || empty($group)) {
return static::$endpoints[$environment];
}

Expand Down Expand Up @@ -153,7 +154,7 @@ protected function mapUserToObject(array $user)
*/
protected function getTokenFields($code)
{
return array_merge(parent::getTokenFields($code), [
return \array_merge(parent::getTokenFields($code), [
'grant_type' => 'authorization_code',
]);
}
Expand Down

0 comments on commit 6e854f0

Please sign in to comment.