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 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));