Skip to content

Commit

Permalink
Apply fixes from StyleCI (#143)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
faustbrian authored Feb 12, 2018
1 parent 7562f77 commit b10f7aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace SocialiteProviders\Twitter;

use SocialiteProviders\Manager\OAuth1\User;
use SocialiteProviders\Manager\OAuth1\AbstractProvider;
use SocialiteProviders\Manager\OAuth1\User;

class Provider extends AbstractProvider
{
Expand All @@ -18,11 +18,11 @@ class Provider extends AbstractProvider
protected function mapUserToObject(array $user)
{
return (new User())->setRaw($user['extra'])->map([
'id' => $user['id'],
'id' => $user['id'],
'nickname' => $user['nickname'],
'name' => $user['name'],
'email' => $user['email'],
'avatar' => $user['avatar'],
'name' => $user['name'],
'email' => $user['email'],
'avatar' => $user['avatar'],
]);
}
}
4 changes: 2 additions & 2 deletions Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace SocialiteProviders\Twitter;

use SocialiteProviders\Manager\OAuth1\User;
use League\OAuth1\Client\Credentials\TokenCredentials;
use SocialiteProviders\Manager\OAuth1\Server as BaseServer;
use SocialiteProviders\Manager\OAuth1\User;

class Server extends BaseServer
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public function userDetails($data, TokenCredentials $tokenCredentials)

foreach ($data as $key => $value) {
if (strpos($key, 'url') !== false) {
if (! in_array($key, $used)) {
if (!in_array($key, $used)) {
$used[] = $key;
}

Expand Down

0 comments on commit b10f7aa

Please sign in to comment.