@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $row->provider = strtolower($this->providerName); |
| 140 | 140 | $row->foreignKey = $data->identifier; |
| 141 | 141 | $row->token = $this->authAdapter->getAccessToken()['access_token']; |
| 142 | - $row->tokenSecret = ($this->authAdapter->getAccessToken()['access_token_secret']) ? : ''; |
|
| 142 | + $row->tokenSecret = ($this->authAdapter->getAccessToken()['access_token_secret']) ?: ''; |
|
| 143 | 143 | $row->tokenType = Auth\Table::TYPE_ACCESS; |
| 144 | 144 | $row->save(); |
| 145 | 145 | |
@@ -45,6 +45,9 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | protected $providerName; |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $providerName |
|
| 50 | + */ |
|
| 48 | 51 | public function __construct($providerName) |
| 49 | 52 | { |
| 50 | 53 | if (!in_array(ucfirst($providerName), $this->getAvailableProviders())) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * @param string $provider |
| 16 | 16 | * @return \closure |
| 17 | 17 | */ |
| 18 | -return function ($provider = '') { |
|
| 18 | +return function($provider = '') { |
|
| 19 | 19 | /** |
| 20 | 20 | * @var Controller $this |
| 21 | 21 | */ |
@@ -12,6 +12,6 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * @return \closure |
| 14 | 14 | */ |
| 15 | -return function () { |
|
| 15 | +return function() { |
|
| 16 | 16 | \Hybrid_Endpoint::process(); |
| 17 | 17 | }; |