PSR-2 CS Fixes
parent
ecabb7df87
commit
38b94802fd
|
@ -4,8 +4,8 @@ namespace League\OAuth2\Client\Grant;
|
|||
|
||||
use League\OAuth2\Client\Token\AccessToken as AccessToken;
|
||||
|
||||
class Authorizationcode implements GrantInterface {
|
||||
|
||||
class Authorizationcode implements GrantInterface
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return 'authorization_code';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace League\OAuth2\Client\Grant;
|
||||
|
||||
interface GrantInterface {
|
||||
|
||||
interface GrantInterface
|
||||
{
|
||||
public function __toString();
|
||||
|
||||
public function handleResponse($response = array());
|
||||
|
|
|
@ -7,8 +7,8 @@ use League\OAuth2\Client\Token\AccessToken as AccessToken;
|
|||
use League\OAuth2\Client\Token\Authorize as AuthorizeToken;
|
||||
use League\OAuth2\Client\Exception\IDPException as IDPException;
|
||||
|
||||
abstract class IdentityProvider {
|
||||
|
||||
abstract class IdentityProvider
|
||||
{
|
||||
public $clientId = '';
|
||||
|
||||
public $clientSecret = '';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace League\OAuth2\Client\Provider;
|
||||
|
||||
class Linkedin extends IdentityProvider
|
||||
class LinkedIn extends IdentityProvider
|
||||
{
|
||||
public $scopes = array('r_basicprofile r_emailaddress r_contactinfo');
|
||||
public $responseType = 'json';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
namespace League\OAuth2\Client\Provider;
|
||||
|
||||
class User implements \IteratorAggregate {
|
||||
|
||||
class User implements \IteratorAggregate
|
||||
{
|
||||
public $uid = null;
|
||||
public $nickname = null;
|
||||
public $name = null;
|
||||
|
@ -37,4 +37,3 @@ class User implements \IteratorAggregate {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
if ( ! @include_once __DIR__ . '/../vendor/autoload.php')
|
||||
{
|
||||
if ( ! @include_once __DIR__ . '/../vendor/autoload.php') {
|
||||
exit("You must set up the project dependencies, run the following commands:\n> wget http://getcomposer.org/composer.phar\n> php composer.phar install\n");
|
||||
}
|
Loading…
Reference in New Issue