PSR-2 CS Fixes

1.0
Phil Sturgeon 2013-11-17 21:45:28 -05:00
parent ecabb7df87
commit 38b94802fd
8 changed files with 49 additions and 51 deletions

View File

@ -4,8 +4,8 @@ namespace League\OAuth2\Client\Grant;
use League\OAuth2\Client\Token\AccessToken as AccessToken; use League\OAuth2\Client\Token\AccessToken as AccessToken;
class Authorizationcode implements GrantInterface { class Authorizationcode implements GrantInterface
{
public function __toString() public function __toString()
{ {
return 'authorization_code'; return 'authorization_code';

View File

@ -2,8 +2,8 @@
namespace League\OAuth2\Client\Grant; namespace League\OAuth2\Client\Grant;
interface GrantInterface { interface GrantInterface
{
public function __toString(); public function __toString();
public function handleResponse($response = array()); public function handleResponse($response = array());

View File

@ -7,8 +7,8 @@ use League\OAuth2\Client\Token\AccessToken as AccessToken;
use League\OAuth2\Client\Token\Authorize as AuthorizeToken; use League\OAuth2\Client\Token\Authorize as AuthorizeToken;
use League\OAuth2\Client\Exception\IDPException as IDPException; use League\OAuth2\Client\Exception\IDPException as IDPException;
abstract class IdentityProvider { abstract class IdentityProvider
{
public $clientId = ''; public $clientId = '';
public $clientSecret = ''; public $clientSecret = '';

View File

@ -2,7 +2,7 @@
namespace League\OAuth2\Client\Provider; namespace League\OAuth2\Client\Provider;
class Linkedin extends IdentityProvider class LinkedIn extends IdentityProvider
{ {
public $scopes = array('r_basicprofile r_emailaddress r_contactinfo'); public $scopes = array('r_basicprofile r_emailaddress r_contactinfo');
public $responseType = 'json'; public $responseType = 'json';

View File

@ -2,8 +2,8 @@
namespace League\OAuth2\Client\Provider; namespace League\OAuth2\Client\Provider;
class User implements \IteratorAggregate { class User implements \IteratorAggregate
{
public $uid = null; public $uid = null;
public $nickname = null; public $nickname = null;
public $name = null; public $name = null;
@ -37,4 +37,3 @@ class User implements \IteratorAggregate {
} }
} }

View File

@ -1,6 +1,5 @@
<?php <?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"); 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");
} }