From a4db9a8494c4065102ccde6428c7e518e583b7dc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 03:15:20 +0000 Subject: [PATCH 1/2] Bump release-drafter/release-drafter from 5 to 6 Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5 to 6. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5...v6) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/draft-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index 6396751..5ebcdd5 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Run release drafter - uses: release-drafter/release-drafter@v5 + uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d5c24f05686762ddf498d6dfbac954f2d2f01b56 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 6 Feb 2024 03:15:43 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- examples/dns_record_post.php | 6 ++++-- examples/dns_zone_details.php | 7 +++++-- examples/dns_zones.php | 7 +++++-- examples/ticket_details.php | 7 +++++-- examples/tickets.php | 6 ++++-- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/examples/dns_record_post.php b/examples/dns_record_post.php index 829a5cc..d427614 100644 --- a/examples/dns_record_post.php +++ b/examples/dns_record_post.php @@ -2,14 +2,16 @@ // Run this script using: php examples/dns_record_post.php +use Exonet\Api\Auth\PersonalAccessToken; +use Exonet\Api\Client; use Exonet\Api\Structures\ApiResource; require __DIR__.'/../vendor/autoload.php'; -$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]); +$authentication = new PersonalAccessToken($argv[1]); // Make an Exonet API client that connects to the test API. -$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL); +$exonetApi = new Client($authentication, Client::API_TEST_URL); /* * Get a single dns_zone resource. Because depending on who is authorized, the dns_zone IDs change, all dns_zones are diff --git a/examples/dns_zone_details.php b/examples/dns_zone_details.php index 0cbd980..6a01096 100644 --- a/examples/dns_zone_details.php +++ b/examples/dns_zone_details.php @@ -1,13 +1,16 @@ require __DIR__.'/../vendor/autoload.php'; -$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]); +$authentication = new PersonalAccessToken($argv[1]); // Make an Exonet API client that connects to the test API. -$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL); +$exonetApi = new Client($authentication, Client::API_TEST_URL); /* * Get a single dns_zone resource. Because depending on who is authorized, the dns_zone IDs change, all dns_zones are diff --git a/examples/dns_zones.php b/examples/dns_zones.php index 54e3332..abd7319 100644 --- a/examples/dns_zones.php +++ b/examples/dns_zones.php @@ -1,13 +1,16 @@ require __DIR__.'/../vendor/autoload.php'; -$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]); +$authentication = new PersonalAccessToken($argv[1]); // Make an Exonet API client that connects to the test API. -$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL); +$exonetApi = new Client($authentication, Client::API_TEST_URL); // Get all DNS zones, limited to 20. $zones = $exonetApi->resource('dns_zones')->size(20)->get(); diff --git a/examples/ticket_details.php b/examples/ticket_details.php index 1c698b4..93c7339 100644 --- a/examples/ticket_details.php +++ b/examples/ticket_details.php @@ -1,13 +1,16 @@ require __DIR__.'/../vendor/autoload.php'; -$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]); +$authentication = new PersonalAccessToken($argv[1]); // Make an Exonet API client that connects to the test API. -$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL); +$exonetApi = new Client($authentication, Client::API_TEST_URL); /* * Get a single ticket resource. Because depending on who is authorized, the ticket IDs change, all tickets are diff --git a/examples/tickets.php b/examples/tickets.php index ae70317..d6e16b5 100644 --- a/examples/tickets.php +++ b/examples/tickets.php @@ -2,14 +2,16 @@ // Run this script using: php examples/tickets.php +use Exonet\Api\Auth\PersonalAccessToken; +use Exonet\Api\Client; use Exonet\Api\Structures\ApiResourceSet; require __DIR__.'/../vendor/autoload.php'; -$authentication = new Exonet\Api\Auth\PersonalAccessToken($argv[1]); +$authentication = new PersonalAccessToken($argv[1]); // Make an Exonet API client that connects to the test API. -$exonetApi = new Exonet\Api\Client($authentication, Exonet\Api\Client::API_TEST_URL); +$exonetApi = new Client($authentication, Client::API_TEST_URL); // Show all tickets, limited to 10. $allTickets = $exonetApi->resource('tickets')->size(10)->get();