Skip to content

Commit

Permalink
Apply fixes from StyleCI (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
akki-io committed Apr 28, 2023
1 parent e53a794 commit c1c6098
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 19 deletions.
2 changes: 0 additions & 2 deletions src/LaravelGoogleAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public function get(): LaravelGoogleAnalyticsResponse
*/
public function getRealTimeReport(): LaravelGoogleAnalyticsResponse
{

$response = $this->getClient()->runRealtimeReport([
'property' => "properties/{$this->getPropertyId()}",
'minuteRanges' => $this->minuteRanges,
Expand All @@ -160,6 +159,5 @@ public function getRealTimeReport(): LaravelGoogleAnalyticsResponse
]);

return $this->formatResponse($response);

}
}
2 changes: 1 addition & 1 deletion src/LaravelGoogleAnalyticsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LaravelGoogleAnalyticsResponse
/**
* Set google response.
*
* @param RunReportResponse|RunRealtimeReportResponse $googleResponse
* @param RunReportResponse|RunRealtimeReportResponse $googleResponse
* @return $this
*/
public function setGoogleResponse(RunReportResponse|RunRealtimeReportResponse $googleResponse): self
Expand Down
24 changes: 12 additions & 12 deletions src/Traits/CustomTechTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait CustomTechTrait
/**
* Get total users by platform.
*
* @param Period $period
* @param Period $period
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -30,7 +30,7 @@ public function getTotalUsersByPlatform(Period $period): array
/**
* Get total users by operating system.
*
* @param Period $period
* @param Period $period
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -49,7 +49,7 @@ public function getTotalUsersByOperatingSystem(Period $period): array
/**
* Get total users by browser.
*
* @param Period $period
* @param Period $period
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -68,7 +68,7 @@ public function getTotalUsersByBrowser(Period $period): array
/**
* Get total users by screen resolution.
*
* @param Period $period
* @param Period $period
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -87,8 +87,8 @@ public function getTotalUsersByScreenResolution(Period $period): array
/**
* Get most users by platform.
*
* @param Period $period
* @param int $count
* @param Period $period
* @param int $count
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -108,8 +108,8 @@ public function getMostUsersByPlatform(Period $period, int $count = 20): array
/**
* Get most users by operating system.
*
* @param Period $period
* @param int $count
* @param Period $period
* @param int $count
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -129,8 +129,8 @@ public function getMostUsersByOperatingSystem(Period $period, int $count = 20):
/**
* Get most users by browser.
*
* @param Period $period
* @param int $count
* @param Period $period
* @param int $count
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand All @@ -150,8 +150,8 @@ public function getMostUsersByBrowser(Period $period, int $count = 20): array
/**
* Get most users by screen resolution.
*
* @param Period $period
* @param int $count
* @param Period $period
* @param int $count
* @return array
*
* @throws \Google\ApiCore\ApiException
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/DateRangeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function dateRange(Period $period): self
/**
* Set the date Ranges.
*
* @param Period ...$items
* @param Period ...$items
* @return LaravelGoogleAnalytics|DateRangeTrait
*/
public function dateRanges(Period ...$items): self
Expand Down
3 changes: 1 addition & 2 deletions src/Traits/MinuteRangeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace AkkiIo\LaravelGoogleAnalytics\Traits;

use AkkiIo\LaravelGoogleAnalytics\Period;
use Google\Analytics\Data\V1beta\MinuteRange;

trait MinuteRangeTrait
Expand All @@ -12,7 +11,7 @@ trait MinuteRangeTrait
public function minuteRange(int $start, int $end = 0): self
{
$this->minuteRanges[] = (new MinuteRange())->setName(
$start . '-' . $end . '-minutes-ago')
$start.'-'.$end.'-minutes-ago')
->setStartMinutesAgo($start)
->setEndMinutesAgo($end);

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private function getMetricAggregationsTable(RunReportResponse|RunRealtimeReportR
/**
* Get table collection.
*
* @param RunReportResponse|RunRealtimeReportResponse $response
* @param RunReportResponse|RunRealtimeReportResponse $response
* @return array
*/
private function getTable(RunReportResponse|RunRealtimeReportResponse $response): array
Expand Down

0 comments on commit c1c6098

Please sign in to comment.