diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index eb537d8..2cb1d5e 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -13,7 +13,7 @@ jobs: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v2.2.0 + uses: dependabot/fetch-metadata@v2.3.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" 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));