Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Dec 11, 2024
1 parent 1744fb4 commit 0bfa28c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function get(
$metricFilter
);
}

public function getRealtime(
Period $period,
array $metrics,
Expand Down
3 changes: 1 addition & 2 deletions src/AnalyticsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Google\Analytics\Data\V1beta\Dimension;
use Google\Analytics\Data\V1beta\FilterExpression;
use Google\Analytics\Data\V1beta\Metric;
use Google\Analytics\Data\V1beta\RunReportResponse;
use Google\Analytics\Data\V1beta\RunRealtimeReportResponse;
use Google\Analytics\Data\V1beta\RunReportResponse;
use Illuminate\Contracts\Cache\Repository;
use Illuminate\Support\Collection;

Expand Down Expand Up @@ -157,7 +157,6 @@ public function runRealtimeReport(array $request): RunRealtimeReportResponse
);
}


public function getAnalyticsService(): BetaAnalyticsDataClient
{
return $this->service;
Expand Down
8 changes: 4 additions & 4 deletions src/OrderBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ class OrderBy
{
public static function dimension(string $dimension, bool $descending = false): GoogleOrderBy
{
$dimensionOrderBy = (new DimensionOrderBy())->setDimensionName($dimension);
$dimensionOrderBy = (new DimensionOrderBy)->setDimensionName($dimension);

return (new GoogleOrderBy())->setDimension(
return (new GoogleOrderBy)->setDimension(
$dimensionOrderBy,
)->setDesc($descending);
}

public static function metric(string $metric, bool $descending = false): GoogleOrderBy
{
$metricOrderBy = (new MetricOrderBy())->setMetricName($metric);
$metricOrderBy = (new MetricOrderBy)->setMetricName($metric);

return (new GoogleOrderBy())->setMetric(
return (new GoogleOrderBy)->setMetric(
$metricOrderBy,
)->setDesc($descending);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(DateTimeInterface $startDate, DateTimeInterface $end

public function toDateRange(): DateRange
{
return (new DateRange())
return (new DateRange)
->setStartDate($this->startDate->format('Y-m-d'))
->setEndDate($this->endDate->format('Y-m-d'));
}
Expand Down

0 comments on commit 0bfa28c

Please sign in to comment.