Skip to content

Commit

Permalink
Merge pull request #255 from spira/analysis-8jWaBX
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
zakhenry committed Sep 22, 2015
2 parents cd428c8 + a6df6da commit 52463d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions api/app/Http/Controllers/UserController.php
Expand Up @@ -194,10 +194,8 @@ public function unlinkSocialLogin($id, $provider)
$user = User::find($id);
$this->auth->login($user, true);


return $this->getResponse()
->header('Authorization-Update', $this->auth->generateToken($user))
->noContent();
}

}
8 changes: 4 additions & 4 deletions api/app/Providers/AuthDriverServiceProvider.php
Expand Up @@ -22,7 +22,7 @@ class AuthDriverServiceProvider extends JWTAuthDriverServiceProvider
protected $requestCookie = 'ngJwtAuthToken';

/**
* Get the generators for the payload
* Get the generators for the payload.
* @return array
*/
protected function getPayloadGenerators()
Expand All @@ -48,7 +48,7 @@ protected function getPayloadGenerators()
}

/**
* Get token user provider closure
* Get token user provider closure.
* @return \Closure
*/
protected function getTokenUserProvider()
Expand All @@ -75,7 +75,7 @@ protected function getTokenUserProvider()
}

/**
* Get the path to the public key
* Get the path to the public key.
* @return string
*/
protected function getSecretPublic()
Expand All @@ -84,7 +84,7 @@ protected function getSecretPublic()
}

/**
* Get path to the private key
* Get path to the private key.
* @return string
*/
protected function getSecretPrivate()
Expand Down
4 changes: 2 additions & 2 deletions api/src/Auth/Payload/PayloadFactory.php
Expand Up @@ -25,7 +25,7 @@ public function __construct(array $payloadGenerators = [])
}

/**
* Create payload from a given user
* Create payload from a given user.
* @param Authenticatable $user
* @return array
*/
Expand All @@ -45,7 +45,7 @@ public function createFromUser(Authenticatable $user)
}

/**
* Add a payload generator
* Add a payload generator.
* @param $name
* @param \Closure $function
*/
Expand Down
2 changes: 1 addition & 1 deletion api/src/Auth/Providers/JWTAuthDriverServiceProvider.php
Expand Up @@ -227,7 +227,7 @@ protected function registerPayloadValidatorFactory()
*/

/**
* Get token user provider closure
* Get token user provider closure.
* @return \Closure
*/
abstract protected function getTokenUserProvider();
Expand Down

0 comments on commit 52463d0

Please sign in to comment.