-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
471 changed files
with
7,812 additions
and
11,083 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Fix Code Style | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [8.3] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: json, dom, curl, libxml, mbstring | ||
coverage: none | ||
|
||
- name: Install Pint | ||
run: composer global require laravel/pint | ||
|
||
- name: Run Pint | ||
run: pint | ||
|
||
- name: Commit linted files | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Fixes coding style" |
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
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
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 |
---|---|---|
|
@@ -7,12 +7,12 @@ | |
/* | ||
* Initialize the Mollie API library with your API key or OAuth access token. | ||
*/ | ||
require "../initialize.php"; | ||
require '../initialize.php'; | ||
|
||
/* | ||
* Determine the url parts to these example files. | ||
*/ | ||
$protocol = isset($_SERVER['HTTPS']) && strcasecmp('off', $_SERVER['HTTPS']) !== 0 ? "https" : "http"; | ||
$protocol = isset($_SERVER['HTTPS']) && strcasecmp('off', $_SERVER['HTTPS']) !== 0 ? 'https' : 'http'; | ||
$hostname = $_SERVER['HTTP_HOST']; | ||
$path = dirname($_SERVER['REQUEST_URI'] ?? $_SERVER['PHP_SELF']); | ||
|
||
|
@@ -22,21 +22,21 @@ | |
* See: https://docs.mollie.com/reference/v2/client-links-api/create-client-link | ||
*/ | ||
$clientLink = $mollie->clientLinks->create([ | ||
"owner" => [ | ||
"email" => "[email protected]", | ||
"givenName" => "foo", | ||
"familyName" => "bar", | ||
"locale" => "nl_NL", | ||
'owner' => [ | ||
'email' => '[email protected]', | ||
'givenName' => 'foo', | ||
'familyName' => 'bar', | ||
'locale' => 'nl_NL', | ||
], | ||
"name" => "Foo Company", | ||
"address" => [ | ||
"streetAndNumber" => "Keizersgracht 313", | ||
"postalCode" => "1016 EE", | ||
"city" => "Amsterdam", | ||
"country" => "nl", | ||
'name' => 'Foo Company', | ||
'address' => [ | ||
'streetAndNumber' => 'Keizersgracht 313', | ||
'postalCode' => '1016 EE', | ||
'city' => 'Amsterdam', | ||
'country' => 'nl', | ||
], | ||
"registrationNumber" => "30204462", | ||
"vatNumber" => "NL123456789B01", | ||
'registrationNumber' => '30204462', | ||
'vatNumber' => 'NL123456789B01', | ||
]); | ||
|
||
/** | ||
|
@@ -46,7 +46,7 @@ | |
* | ||
* For more info see: https://docs.mollie.com/reference/oauth2/authorize#parameters | ||
*/ | ||
$redirectUrl = $clientLink->getRedirectUrl("app_j9Pakf56Ajta6Y65AkdTtAv", "decafbad", "force", [ | ||
$redirectUrl = $clientLink->getRedirectUrl('app_j9Pakf56Ajta6Y65AkdTtAv', 'decafbad', 'force', [ | ||
'onboarding.read', | ||
'onboarding.write', | ||
]); | ||
|
@@ -55,7 +55,7 @@ | |
* Send the customer off to finalize the organization creation. | ||
* This request should always be a GET, thus we enforce 303 http response code | ||
*/ | ||
header("Location: " . $redirectUrl, true, 303); | ||
header('Location: '.$redirectUrl, true, 303); | ||
} catch (\Mollie\Api\Exceptions\ApiException $e) { | ||
echo "API call failed: " . htmlspecialchars($e->getMessage()); | ||
echo 'API call failed: '.htmlspecialchars($e->getMessage()); | ||
} |
Oops, something went wrong.