Skip to content

Commit 6aec1f7

Browse files
author
Alex Westergaard
committed
Fix abstraction and unused var
1 parent 1c55826 commit 6aec1f7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/Analytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function post()
133133
{
134134
$errorStack = null;
135135

136-
$url = $this->debug || $validate ? $this::URL_DEBUG : $this::URL_LIVE;
136+
$url = $this->debug ? $this::URL_DEBUG : $this::URL_LIVE;
137137
$url .= '?' . http_build_query(['measurement_id' => $this->measurement_id, 'api_secret' => $this->api_secret]);
138138

139139
$catch = parent::toArray(true, $errorStack);

src/Model/Event.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ abstract class Event extends ToArray implements Facade\Export
1414
*/
1515
abstract public function getName(): string;
1616

17-
abstract public function getParams(): array;
18-
19-
abstract public function getRequiredParams(): array;
20-
2117
/**
2218
* @param GA4Exception $childErrors
2319
*/

0 commit comments

Comments
 (0)