From 15c51af6664b8af5eb5fc4f70d8d98c4457f5d16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 20:35:57 +0000 Subject: [PATCH 1/3] Bump aglipanci/laravel-pint-action from 2.4 to 2.5 Bumps [aglipanci/laravel-pint-action](https://github.com/aglipanci/laravel-pint-action) from 2.4 to 2.5. - [Release notes](https://github.com/aglipanci/laravel-pint-action/releases) - [Commits](https://github.com/aglipanci/laravel-pint-action/compare/2.4...2.5) --- updated-dependencies: - dependency-name: aglipanci/laravel-pint-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/fix-php-code-style-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 9384d28..ef2fadf 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -13,7 +13,7 @@ jobs: ref: ${{ github.head_ref }} - name: Fix PHP code style issues - uses: aglipanci/laravel-pint-action@2.4 + uses: aglipanci/laravel-pint-action@2.5 - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v5 From a97d00b70718adcc4c7ee2e857d099515173511a Mon Sep 17 00:00:00 2001 From: Baspa Date: Tue, 11 Feb 2025 09:42:49 +0100 Subject: [PATCH 2/3] Trigger workflow From 54db91ee7fd56b74c372973a55b0cc7bf3b135b1 Mon Sep 17 00:00:00 2001 From: Baspa <10845460+Baspa@users.noreply.github.com> Date: Tue, 11 Feb 2025 08:43:09 +0000 Subject: [PATCH 3/3] Fix styling --- src/Analytics.php | 2 +- src/Traits/Google/FilterByTrait.php | 2 +- src/Traits/ResponseFormatterTrait.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Analytics.php b/src/Analytics.php index d044aad..a52436d 100755 --- a/src/Analytics.php +++ b/src/Analytics.php @@ -32,7 +32,7 @@ class Analytics public function __construct(?int $propertyId = null) { - $this->googleAnalytics = new GoogleAnalyticsService(); + $this->googleAnalytics = new GoogleAnalyticsService; $this->propertyId = $propertyId ?? config('google-analytics.property_id') ?? null; $this->credentials = config('google-analytics.credentials') ?? null; } diff --git a/src/Traits/Google/FilterByTrait.php b/src/Traits/Google/FilterByTrait.php index 2cd7d4e..a54bbc0 100644 --- a/src/Traits/Google/FilterByTrait.php +++ b/src/Traits/Google/FilterByTrait.php @@ -131,7 +131,7 @@ public function whereMetricBetween(string $field, int|string|float $from, int|st private function getNumeric(int|string|float $value): NumericValue { - $numeric = new NumericValue(); + $numeric = new NumericValue; if (is_float($value)) { $numeric->setDoubleValue($value); diff --git a/src/Traits/ResponseFormatterTrait.php b/src/Traits/ResponseFormatterTrait.php index 0cd55ce..5bcdbea 100644 --- a/src/Traits/ResponseFormatterTrait.php +++ b/src/Traits/ResponseFormatterTrait.php @@ -16,7 +16,7 @@ public function formatResponse(RunReportResponse|RunRealtimeReportResponse $resp { $this->setDimensionAndMetricHeaders($response); - return (new AnalyticsResponse()) + return (new AnalyticsResponse) ->setResponse($response) ->setDataTable($this->getTable($response)) ->setMetricAggregationsTable($this->getMetricAggregationsTable($response));