-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from ciungulete/master
- Loading branch information
Showing
11 changed files
with
55 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
* @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php | ||
* @author Mollie B.V. <[email protected]> | ||
* @copyright Mollie B.V. | ||
* | ||
* @link https://www.mollie.com | ||
*/ | ||
return [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ | |
* @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php | ||
* @author Mollie B.V. <[email protected]> | ||
* @copyright Mollie B.V. | ||
* | ||
* @link https://www.mollie.com | ||
*/ | ||
|
||
namespace Mollie\Laravel\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ | |
* @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php | ||
* @author Mollie B.V. <[email protected]> | ||
* @copyright Mollie B.V. | ||
* | ||
* @link https://www.mollie.com | ||
*/ | ||
|
||
namespace Mollie\Laravel; | ||
|
||
use Illuminate\Support\Arr; | ||
|
@@ -72,8 +74,7 @@ class MollieConnectProvider extends AbstractProvider implements ProviderInterfac | |
/** | ||
* Get the authentication URL for the provider. | ||
* | ||
* @param string $state | ||
* | ||
* @param string $state | ||
* @return string | ||
*/ | ||
protected function getAuthUrl($state) | ||
|
@@ -94,8 +95,7 @@ protected function getTokenUrl() | |
/** | ||
* Get the access token for the given code. | ||
* | ||
* @param string $code | ||
* | ||
* @param string $code | ||
* @return string | ||
*/ | ||
public function getAccessToken($code) | ||
|
@@ -111,8 +111,7 @@ public function getAccessToken($code) | |
/** | ||
* Get the access token with a refresh token. | ||
* | ||
* @param string $refresh_token | ||
* | ||
* @param string $refresh_token | ||
* @return array | ||
*/ | ||
public function getRefreshTokenResponse($refresh_token) | ||
|
@@ -128,8 +127,7 @@ public function getRefreshTokenResponse($refresh_token) | |
/** | ||
* Get the refresh tokenfields with a refresh token. | ||
* | ||
* @param string $refresh_token | ||
* | ||
* @param string $refresh_token | ||
* @return array | ||
*/ | ||
protected function getRefreshTokenFields($refresh_token) | ||
|
@@ -145,8 +143,7 @@ protected function getRefreshTokenFields($refresh_token) | |
/** | ||
* Get the POST fields for the token request. | ||
* | ||
* @param string $code | ||
* | ||
* @param string $code | ||
* @return array | ||
*/ | ||
public function getTokenFields($code) | ||
|
@@ -157,8 +154,7 @@ public function getTokenFields($code) | |
/** | ||
* Get the raw user for the given access token. | ||
* | ||
* @param string $token | ||
* | ||
* @param string $token | ||
* @return array | ||
*/ | ||
protected function getUserByToken($token) | ||
|
@@ -173,8 +169,7 @@ protected function getUserByToken($token) | |
/** | ||
* Map the raw user array to a Socialite User instance. | ||
* | ||
* @param array $user | ||
* | ||
* @param array $user | ||
* @return \Laravel\Socialite\AbstractUser | ||
*/ | ||
protected function mapUserToObject(array $user) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ | |
* @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php | ||
* @author Mollie B.V. <[email protected]> | ||
* @copyright Mollie B.V. | ||
* | ||
* @link https://www.mollie.com | ||
*/ | ||
|
||
namespace Mollie\Laravel; | ||
|
||
use Illuminate\Contracts\Container\Container; | ||
|
@@ -46,8 +48,7 @@ class MollieManager | |
/** | ||
* MollieManager constructor. | ||
* | ||
* @param Container $app | ||
* | ||
* @param Container $app | ||
* @return void | ||
*/ | ||
public function __construct(Container $app) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ | |
* @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php | ||
* @author Mollie B.V. <[email protected]> | ||
* @copyright Mollie B.V. | ||
* | ||
* @link https://www.mollie.com | ||
*/ | ||
|
||
namespace Mollie\Laravel; | ||
|
||
use Illuminate\Contracts\Container\Container; | ||
|
@@ -63,7 +65,7 @@ public function boot() | |
*/ | ||
protected function setupConfig() | ||
{ | ||
$source = realpath(__DIR__ . '/../config/mollie.php'); | ||
$source = realpath(__DIR__.'/../config/mollie.php'); | ||
|
||
// Check if the application is a Laravel OR Lumen instance to properly merge the configuration file. | ||
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { | ||
|
@@ -129,7 +131,7 @@ protected function registerApiAdapter() | |
protected function registerApiClient() | ||
{ | ||
$this->app->singleton('mollie.api.client', function () { | ||
return (new MollieApiClient())->addVersionString('MollieLaravel/' . self::PACKAGE_VERSION); | ||
return (new MollieApiClient())->addVersionString('MollieLaravel/'.self::PACKAGE_VERSION); | ||
}); | ||
|
||
$this->app->alias('mollie.api.client', MollieApiClient::class); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ | |
* @license Berkeley Software Distribution License (BSD-License 2) http://www.opensource.org/licenses/bsd-license.php | ||
* @author Mollie B.V. <[email protected]> | ||
* @copyright Mollie B.V. | ||
* | ||
* @link https://www.mollie.com | ||
*/ | ||
|
||
namespace Mollie\Laravel\Wrappers; | ||
|
||
use Illuminate\Contracts\Config\Repository; | ||
|
@@ -53,11 +55,11 @@ class MollieApiWrapper | |
/** | ||
* MollieApiWrapper constructor. | ||
* | ||
* @param Repository $config | ||
* @param MollieApiClient $client | ||
* @param Repository $config | ||
* @param MollieApiClient $client | ||
* @return void | ||
* | ||
* @throws \Mollie\Api\Exceptions\ApiException | ||
* @return void | ||
*/ | ||
public function __construct(Repository $config, MollieApiClient $client) | ||
{ | ||
|
@@ -68,7 +70,7 @@ public function __construct(Repository $config, MollieApiClient $client) | |
} | ||
|
||
/** | ||
* @param string $url | ||
* @param string $url | ||
*/ | ||
public function setApiEndpoint($url) | ||
{ | ||
|
@@ -84,7 +86,8 @@ public function getApiEndpoint() | |
} | ||
|
||
/** | ||
* @param string $api_key The Mollie API key, starting with 'test_' or 'live_' | ||
* @param string $api_key The Mollie API key, starting with 'test_' or 'live_' | ||
* | ||
* @throws ApiException | ||
*/ | ||
public function setApiKey($api_key) | ||
|
@@ -93,7 +96,8 @@ public function setApiKey($api_key) | |
} | ||
|
||
/** | ||
* @param string $access_token OAuth access token, starting with 'access_' | ||
* @param string $access_token OAuth access token, starting with 'access_' | ||
* | ||
* @throws ApiException | ||
*/ | ||
public function setAccessToken($access_token) | ||
|
@@ -290,6 +294,7 @@ public function organizationPartners() | |
|
||
/** | ||
* @return void | ||
* | ||
* @throws \Mollie\Api\Exceptions\HttpAdapterDoesNotSupportDebuggingException | ||
*/ | ||
public function enableDebugging() | ||
|
@@ -299,6 +304,7 @@ public function enableDebugging() | |
|
||
/** | ||
* @return void | ||
* | ||
* @throws \Mollie\Api\Exceptions\HttpAdapterDoesNotSupportDebuggingException | ||
*/ | ||
public function disableDebugging() | ||
|
@@ -309,7 +315,7 @@ public function disableDebugging() | |
/** | ||
* Handle dynamic property calls. | ||
* | ||
* @param string $property | ||
* @param string $property | ||
* @return mixed | ||
*/ | ||
public function __get($property) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters